mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { Exception } from './Exception';
|
|
export declare class BaseUrlMissingException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare class UserNotFoundException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare class WrongPasswordException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare class InvalidRequestException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare class NameTooLongException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare class UserAlreadyExistsException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare class InsufficientFundsException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare enum ErrorCodes {
|
|
UserNotFound = -1,
|
|
WrongPassword = -2,
|
|
InvalidRequest = -3,
|
|
NameTooLong = -5,
|
|
UserAlreadyExists = -6,
|
|
InsufficientFunds = -7
|
|
}
|
|
export declare const ExceptionMap: {
|
|
[-1]: typeof UserNotFoundException;
|
|
[-2]: typeof WrongPasswordException;
|
|
[-3]: typeof InvalidRequestException;
|
|
[-5]: typeof NameTooLongException;
|
|
[-6]: typeof UserAlreadyExistsException;
|
|
[-7]: typeof InsufficientFundsException;
|
|
};
|