public function addError(ErrorInterface $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;
    }
public function addError(ErrorInterface $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;
    }
public function addError ( ErrorInterface $ 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 ; }
Append the passed error to the request handler's stack.

@param \AppserverIo\Appserver\ServletEngine\Utils\ErrorInterface $error The error to append

@return void
Append the passed error to the request handler s stack .