UNPKG

lin-cms-test

Version:

The core library of Lin CMS, this package is just for test!

79 lines (78 loc) 1.93 kB
export interface Exception { code?: number; msg?: any; errorCode?: number; } export declare class HttpException extends Error { code: number; msg: any; errorCode: number; fields: string[]; constructor(ex?: Exception); } export declare class Success extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class Failed extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class AuthFailed extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class NotFound extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class ParametersException extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class InvalidTokenException extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class ExpiredTokenException extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class UnknownException extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class RepeatException extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class Forbidden extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); } export declare class MethodNotAllowed extends HttpException { code: number; msg: string; errorCode: number; constructor(ex?: Exception); }