PHP Class Tobscure\JsonApi\ErrorHandler

Afficher le fichier Open project: tobscure/json-api Class Usage Examples

Méthodes publiques

Méthode Description
handle ( Exception $e ) : Tobscure\JsonApi\Exception\Handler\ResponseBag Handle the exception provided.
registerHandler ( Tobscure\JsonApi\Exception\Handler\ExceptionHandlerInterface $handler ) : void Register a new exception handler.

Method Details

handle() public méthode

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

registerHandler() public méthode

Register a new exception handler.
public registerHandler ( Tobscure\JsonApi\Exception\Handler\ExceptionHandlerInterface $handler ) : void
$handler Tobscure\JsonApi\Exception\Handler\ExceptionHandlerInterface
Résultat void