PHP 클래스 Tobscure\JsonApi\ErrorHandler

파일 보기 프로젝트 열기: tobscure/json-api 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

handle() 공개 메소드

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

registerHandler() 공개 메소드

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