mirror of
https://github.com/certd/certd.git
synced 2026-07-17 03:17:34 +08:00
13 lines
401 B
TypeScript
13 lines
401 B
TypeScript
|
|
import { Constants } from '../constants.js';
|
||
|
|
import { BaseException } from './base-exception.js';
|
||
|
|
/**
|
||
|
|
* 通用异常
|
||
|
|
*/
|
||
|
|
export class LoginErrorException extends BaseException {
|
||
|
|
leftCount: number;
|
||
|
|
constructor(message, leftCount: number) {
|
||
|
|
super('LoginErrorException', Constants.res.loginError.code, message ? message : Constants.res.loginError.message);
|
||
|
|
this.leftCount = leftCount;
|
||
|
|
}
|
||
|
|
}
|