mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-14 19:22:50 +00:00
16 lines
348 B
TypeScript
16 lines
348 B
TypeScript
import { RESCODE, RESMESSAGE } from '../constant/global';
|
|
import { BaseException } from './base';
|
|
|
|
/**
|
|
* 校验异常
|
|
*/
|
|
export class CoolValidateException extends BaseException {
|
|
constructor(message: string) {
|
|
super(
|
|
'CoolValidateException',
|
|
RESCODE.VALIDATEFAIL,
|
|
message ? message : RESMESSAGE.VALIDATEFAIL
|
|
);
|
|
}
|
|
}
|