public function callError() {
        if (!($this->error instanceof Error)) {
            $this->error = new Error();
        }

        $status = $this->error->getStatus();
        $this->app->response->status($status);

        if (is_callable($this->options["error"])) {
            $this->options["error"]($this->error);
        }
    }
public function callError() {
        if (!($this->error instanceof Error)) {
            $this->error = new Error();
        }

        $status = $this->error->getStatus();
        $this->app->response->status($status);

        if (is_callable($this->options["error"])) {
            $this->options["error"]($this->error);
        }
    }
public function callError ( ) { if ( ! ( $ this -> error instanceof Error ) ) { $ this -> error = new Error ( ) ; } $ status = $ this -> error -> getStatus ( ) ; $ this -> app -> response -> status ( $ status ) ; if ( is_callable ( $ this -> options [ "error" ] ) ) { $ this -> options [ "error" ] ( $ this -> error ) ; } }
Call the error handler if it exists

@return void
Call the error handler if it exists