getMessage(),Enum::THROW_ERR_CODE); } if ($e instanceof TokenException) { Until::output([], $e->getMessage(),Enum::REFRSEH_TOKEN); } if ($e instanceof Exception || $e instanceof Error) { Until::output([], $e->getMessage().' file:' . str_replace('/ky100/www','ROOT',$e->getFile()) . ' line:' . $e->getLine() ,Enum::THROW_ERR_CODE); } // 其他错误交给系统处理 return parent::render($e); } }