AppserverIo\Appserver\ServletEngine\RequestHandler::addError PHP Method

addError() public method

Append the passed error to the request handler's stack.
public addError ( Error $error ) : void
$error AppserverIo\Appserver\ServletEngine\Utils\Error The error to append
return void
    public function addError(Error $error)
    {
        // create a local copy of the error stack
        $errors = $this->errors;
        // append the error to the stack
        $errors[] = $error;
        // copy the error stack back to the thread context
        $this->errors = $errors;
    }