0 follower

Interface Yiisoft\Request\Body\BadRequestHandlerInterface

ExtendsPsr\Http\Server\RequestHandlerInterface
Implemented byYiisoft\Request\Body\BadRequestHandler

Forms response when there is an error parsing request.

Public Methods

Hide inherited methods

Method Description Defined By
withParserException() Creates new instance of handler with parser exception set. Yiisoft\Request\Body\BadRequestHandlerInterface

Method Details

Hide inherited methods

withParserException() public abstract method

Creates new instance of handler with parser exception set.

public abstract self withParserException ( Yiisoft\Request\Body\ParserException $e )
$e Yiisoft\Request\Body\ParserException

Exception occurred during parsing request.

                public function withParserException(ParserException $e): self;