PHP Interface Tobscure\JsonApi\Exception\Handler\ExceptionHandlerInterface

Afficher le fichier Open project: tobscure/json-api

Méthodes publiques

Méthode Description
handle ( Exception $e ) : Tobscure\JsonApi\Exception\Handler\ResponseBag Handle the provided exception.
manages ( Exception $e ) : boolean If the exception handler is able to format a response for the provided exception, then the implementation should return true.

Method Details

handle() public méthode

Handle the provided exception.
public handle ( Exception $e ) : Tobscure\JsonApi\Exception\Handler\ResponseBag
$e Exception
Résultat Tobscure\JsonApi\Exception\Handler\ResponseBag

manages() public méthode

If the exception handler is able to format a response for the provided exception, then the implementation should return true.
public manages ( Exception $e ) : boolean
$e Exception
Résultat boolean