handleException()
handleException(\Exception $exception) : mixed
generates an object describing the exception.
Parameters
\Exception | $exception | the exception object to analyze |
Returns
mixed —an object describing the error, that will be serialized and sent back to the client