private function ErrorDocument($controller, $msg, $code = 0) { Router::ErrorDocument($controller); new Exception($msg, $code); $this->init(); $this->instance->message = $msg; }