25 lines
471 B
TypeScript
25 lines
471 B
TypeScript
/**
|
|
* Error types module stub
|
|
*/
|
|
|
|
export class SmtpError extends Error {
|
|
constructor(message: string, public code?: number) {
|
|
super(message);
|
|
this.name = 'SmtpError';
|
|
}
|
|
}
|
|
|
|
export class AuthenticationError extends Error {
|
|
constructor(message: string) {
|
|
super(message);
|
|
this.name = 'AuthenticationError';
|
|
}
|
|
}
|
|
|
|
export class RateLimitError extends Error {
|
|
constructor(message: string) {
|
|
super(message);
|
|
this.name = 'RateLimitError';
|
|
}
|
|
}
|