F95API/scripts/classes/errors.d.ts

34 lines
736 B
TypeScript
Raw Normal View History

2021-03-05 11:27:36 +00:00
interface IBaseError {
2021-03-05 12:05:49 +00:00
/**
* Unique identifier of the error.
*/
id: number;
/**
* Error message.
*/
message: string;
/**
* Error to report.
*/
error: Error;
2021-03-05 11:27:36 +00:00
}
export declare class GenericAxiosError extends Error implements IBaseError {
2021-03-05 12:05:49 +00:00
id: number;
message: string;
error: Error;
constructor(args: IBaseError);
2021-03-05 11:27:36 +00:00
}
export declare class UnexpectedResponseContentType extends Error implements IBaseError {
2021-03-05 12:05:49 +00:00
id: number;
message: string;
error: Error;
constructor(args: IBaseError);
}
export declare class InvalidF95Token extends Error {
}
export declare class UserNotLogged extends Error {
}
export declare class ParameterError extends Error {
2021-03-05 11:27:36 +00:00
}
export {};