mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
15 lines
329 B
TypeScript
15 lines
329 B
TypeScript
|
|
import { Constants } from '../constants';
|
||
|
|
import { BaseException } from './base-exception';
|
||
|
|
/**
|
||
|
|
* 通用异常
|
||
|
|
*/
|
||
|
|
export class CommonException extends BaseException {
|
||
|
|
constructor(message) {
|
||
|
|
super(
|
||
|
|
'CommonException',
|
||
|
|
Constants.res.error.code,
|
||
|
|
message ? message : Constants.res.error.message
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|