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