2026-07-12 02:29:54 +08:00
|
|
|
import { Constants } from "../constants.js";
|
|
|
|
|
import { BaseException } from "./base-exception.js";
|
2024-11-28 11:10:57 +08:00
|
|
|
/**
|
|
|
|
|
* 通用异常
|
|
|
|
|
*/
|
|
|
|
|
export class LoginErrorException extends BaseException {
|
|
|
|
|
leftCount: number;
|
2026-07-12 02:29:54 +08:00
|
|
|
userId?: number;
|
|
|
|
|
constructor(message, leftCount: number, userId?: number) {
|
|
|
|
|
super("LoginErrorException", Constants.res.loginError.code, message ? message : Constants.res.loginError.message);
|
2024-11-28 11:10:57 +08:00
|
|
|
this.leftCount = leftCount;
|
2026-07-12 02:29:54 +08:00
|
|
|
this.userId = userId;
|
2024-11-28 11:10:57 +08:00
|
|
|
}
|
|
|
|
|
}
|