neverbounce
Version:
An API wrapper for the NeverBounce API
32 lines (31 loc) • 781 B
TypeScript
declare global {
interface ErrorConstructor {
captureStackTrace?(targetObject: object, constructorOpt?: new (...args: any[]) => any): void;
}
}
/**
* NeverBounce API Error class
*/
declare class _Error extends Error {
name: string;
type: string;
message: string;
/**
* Error constructor
* @param type Error type
* @param message Error message
*/
constructor(type?: string, message?: string);
/**
* Error type constants
*/
static readonly AuthError: string;
static readonly BadReferrerError: string;
static readonly GeneralError: string;
static readonly ThrottleError: string;
/**
* Error lookup table
*/
static readonly _lut: Record<string, string>;
}
export default _Error;