function Global / rescue

rescue

rescue ( ) : TRescueValue|TRescueFallback

Catch a potential exception and return a default value.

Parameters

  • $ callable
    TRescueValue $callback
  • $rescue callable|TRescueFallback
  • $report bool|callable