initial
This commit is contained in:
24
ts/errors/index.ts
Normal file
24
ts/errors/index.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* 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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user