thawani-nodejs
Version:
Node.js library for Thawani Payment Gateway
18 lines (17 loc) • 689 B
TypeScript
export declare class ThawaniError extends Error {
readonly message: string;
readonly code?: string | undefined;
readonly type?: string | undefined;
readonly data?: any | undefined;
constructor(message: string, code?: string | undefined, type?: string | undefined, data?: any | undefined);
}
export declare class ValidationError extends ThawaniError {
constructor(message: string, data?: any);
}
export declare class APIError extends ThawaniError {
readonly statusCode: number;
constructor(message: string, statusCode: number, code?: string, data?: any);
}
export declare class AuthenticationError extends ThawaniError {
constructor(message?: string);
}