Calls out {@link Output::sendError()} with the appropriate values.
2299
public function send()
    {
        $output = new Output();
        $output->setStatusCode($this->code, $this->getResponseDescription($this->code));

        //push errorStore into $result object for proper handling
        $result = $this->di->get('result', []);
        $result->addError($this->errorStore);
        $output->send($result);
    }
1000920
public void error(OutputStream os,
                    String to,
                    HeadersAmp headers,
                    ErrorAmp error)
    throws IOException
  {
    init(os);

    OutH3 out = _out;

    if (out == null)
      return;

    if (log.isLoggable(Level.FINEST)) {
      log.finest("error" + error
                 + " (in " + this + ")" + " {to:" + to + ", " + headers + "}");
    }

    out.writeLong(MessageTypeHamp.ERROR.ordinal());
    writeHeaders(out, headers);
    
    writeFromAddress(out, to);

    out.writeString(error.getCode().toString());
    out.writeString(error.getMessage());
    out.writeObject(error.getDetail());

    //out.flushBuffer();
    out.flush();
  }
725068
public void printErrors(PrintWriter out)
	{
		for (VDMError e : getErrors())
		{
			out.println(e.toString());
		}
	}
934535
function output (err, value) {
      // Buffer err and value for
      // sending in case we do not have
      // a callback yet
      if (arguments.length >= 1) {
        buffer.push([err, value])
      }

      // We have something to output
      // and a callback, do it
      if (_cb && buffer.length > 0) {
        var cb = _cb
        _cb = null
        var call = buffer.shift()
        cb(call[0], call[1])
      }
    }
720443
public static function sendErrorsToAdmin() {
		// determine if we need to send anything
		$found = false;
		foreach (\Object\Error\Base::$errors as $k => $v) {
			if ($v['errno'] != -1) {
				$found = true;
				break;
			}
		}
		// we do not send suppresed errors to admin for now. !empty(self::$data['suppressed'])
		if ($found || !empty(self::$data['js'])) {
			$message = '<hr/>';
			$message.= '<br/>IP: ' . \Request::ip();
			$message.= '<br/>Host: ' . \Request::host();
			$message.= '<br/>Script folder: ' . getcwd();
			$message.= '<hr/>';
			$message.= str_replace('display: none;', '', self::render());
			return \Mail::send([
				'to' => self::$email,
				'subject' => 'application error',
				'message' => $message
			]);
		}
	}
214811
protected function ensureOutputIsBeingCaptured()
    {
        if (is_null($this->output) || $this->output == $this->getDefaultOutput()) {
            $this->sendOutputTo(storage_path('logs/schedule-'.sha1($this->mutexName()).'.log'));
        }
    }
139165
private function emitSocketError()
    {
        $errno = socket_last_error();
        $errstr = socket_strerror($errno);

        $this->disconnect();

        $this->onConnectionError(trim($errstr), $errno);
    }
321774
protected function outputErrors($errors)
    {
        foreach ($errors as $path => $error) {
            $this->output->writeln($this->color('error', $path . ':'));
            $this->output->writeln($error);
            $this->output->writeln('');
        }
    }
1067665
final public static function outputAsError(string $message, string $exit = "yes")
    {
        $colors = self::getManagerColorInstance();
        echo "\n\n".$colors->getColoredString($message, "red", "transparent");
        if ($exit == "yes") {
            exit();
        }
    }
20281
private function displayError() {

		if(count($this -> options['ip']) === 0 || true === in_array(Request :: getIp(), $this -> options['ip'])) {

			$error = [

				'type'		=> $this -> error -> getType(),
				'text' 		=> $this -> error -> getMessage(),
				'file'		=> $this -> error -> getFile(),
				'line'		=> $this -> error -> getLine(),
				'backtrace' => $this -> formatBacktrace()
			];

			exit('<pre>' . print_r($error, true) . '</pre>');
		}
	}
489447
protected function analyzeResponseErrors()
    {
        $content = $this->content;

        if ($content && property_exists($content, 'errors')) {
            $this->setErrors($content, 'errors');
        } elseif ($content && property_exists($content, 'ERROR')) {
            $this->setError('Unknown', $content->ERROR);
        }

        $this->throwExceptions();
    }
1176606
protected function buildFailedOutputObject()
    {
        $error = '<!DOCTYPE html><html><head><title>An Error Occurred</title></head><body>';
        $error.= '<h1>Error ' . $this->statusCode . '</h1>';
        $error.= '<p>Sorry about that, please try again later!</p></body></html>';

        $output = new \Slab\Controllers\Response(
            static::ERROR_DISPLAY_RESOLVER,
            $error,
            $this->statusCode,
            ['Content-type' => 'text/html']
        );

        return $output;
    }
976719
public void printError() {
    System.out.print(description);
    if (value != null)
      System.out.print(" (" + value + ")");
    System.out.println();
  }
958576
protected void sendError( String errText, HttpServletResponse response )
        throws IOException
    {
        sendError( errText, null, response );
    }
825168
@Override
    public void sendError(int code, String message) throws IOException {
        if (isCommitted()) {
            throw new IllegalStateException("Response already committed");
        }
        resetBuffer();
        this.response.setStatus(code);
        commit();
        if (null != message) {
            if (null != this.outWriter) {
                this.outWriter.print(message);
            } else {
                this.outStream.print(message);
            }
            flushBuffer();
        }
    }
368344
protected function _readErrorMessage()
	{
		$sErrorResponse = @fread($this->_hSocket, self::ERROR_RESPONSE_SIZE);
		if ($sErrorResponse === false || strlen($sErrorResponse) != self::ERROR_RESPONSE_SIZE) {
			return;
		}
		$aErrorResponse = $this->_parseErrorMessage($sErrorResponse);
		if (!is_array($aErrorResponse) || empty($aErrorResponse)) {
			return;
		}
		if (!isset($aErrorResponse['command'], $aErrorResponse['statusCode'], $aErrorResponse['identifier'])) {
			return;
		}
		if ($aErrorResponse['command'] != self::ERROR_RESPONSE_COMMAND) {
			return;
		}
		$aErrorResponse['time'] = time();
		$aErrorResponse['statusMessage'] = 'None (unknown)';
		if (isset($this->_aErrorResponseMessages[$aErrorResponse['statusCode']])) {
			$aErrorResponse['statusMessage'] = $this->_aErrorResponseMessages[$aErrorResponse['statusCode']];
		}
		return $aErrorResponse;
	}
695788
public function renderError()
	{
		$parent=$this->getParent();
		return $parent->getActiveFormWidget()->error($parent->getModel(), $this->name, $this->errorOptions, $this->enableAjaxValidation, $this->enableClientValidation);
	}