PHP Class Tobscure\JsonApi\ErrorHandler

ファイルを表示 Open project: tobscure/json-api Class Usage Examples

Public Methods

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

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

registerHandler() public method

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