ExceptionMapperRegistry
in package
FinalYes
Tags
Table of Contents
Methods
- has() : bool
- map() : ResponseInterface
- register() : void
Methods
has()
public
has(string $exceptionClass) : bool
Parameters
- $exceptionClass : string
Return values
boolmap()
public
map(Throwable $e, ServerRequestInterface $r) : ResponseInterface
Parameters
- $e : Throwable
- $r : ServerRequestInterface
Return values
ResponseInterfaceregister()
public
register(TException> $exceptionClass, callable(TException, ServerRequestInterface): ResponseInterface $mapper) : void
Parameters
- $exceptionClass : TException>
- $mapper : callable(TException, ServerRequestInterface): ResponseInterface