private function addError($message, $level = E_USER_NOTICE)
    {
        Types::assert(
            ['string' => [$message], 'int' => [$level]]
        );

        $this->errors[] = new Error($message, $level);
    }
private function addError($message, $level = E_USER_NOTICE)
    {
        Types::assert(
            ['string' => [$message], 'int' => [$level]]
        );

        $this->errors[] = new Error($message, $level);
    }
private function addError ( $ message , $ level = E_USER_NOTICE ) { Types :: assert ( [ 'string' => [ $ message ] , 'int' => [ $ level ] ] ) ; $ this -> errors [ ] = new Error ( $ message , $ level ) ; }
Add and store an error internally.

@param string $message
@param int $level
@return void
Add and store an error internally .