NotAllowedExceptionHandler

Implements \Tobscure\JsonApi\Exception\Handler\ExceptionHandlerInterface

Handler for permission errors that should give a 403

since

4.0.0

Methods

handle

Handle the provided exception.

handle(\Exception $e) : \Tobscure\JsonApi\Exception\Handler\ResponseBag
since

4.0.0

Arguments

$e

\ExceptionThe exception being handled

Response

\Tobscure\JsonApi\Exception\Handler\ResponseBag

manages

If the exception handler is able to format a response for the provided exception, then the implementation should return true.

manages(\Exception $e) : boolean
since

4.0.0

Arguments

$e

\ExceptionThe exception to be handled

Response

boolean