mirror of
https://github.com/Expand-sys/ccashfrontend
synced 2025-12-19 16:12:14 +11:00
25 lines
720 B
TypeScript
25 lines
720 B
TypeScript
import { ValidationError } from 'class-validator';
|
|
import { Exception } from './Exception';
|
|
export declare class BaseUrlMissingException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare class InvalidRequestException extends Exception {
|
|
constructor();
|
|
}
|
|
export declare class InvalidResponseException extends Exception {
|
|
readonly errors: ValidationError[];
|
|
constructor(errors: ValidationError[]);
|
|
}
|
|
export declare enum ErrorCodes {
|
|
UserNotFound = -1,
|
|
WrongPassword = -2,
|
|
NameTooLong = -4,
|
|
UserAlreadyExists = -5,
|
|
InsufficientFunds = -6
|
|
}
|
|
export declare enum ExceptionCodes {
|
|
InvalidRequest = -3
|
|
}
|
|
export declare const ExceptionMap: {
|
|
[-3]: typeof InvalidRequestException;
|
|
};
|