PHP Interface Tobscure\JsonApi\Exception\Handler\ExceptionHandlerInterface

Datei anzeigen Open project: tobscure/json-api

Public Methods

Method 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 method

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

manages() public method

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
return boolean