AppserverIo\Appserver\ServletEngine\RequestHandler::addError PHP 메소드

addError() 공개 메소드

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
리턴 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;
    }