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

        $this->errors[] = new Error($message, $level);
    }