gmailclient
Version:
Cliente para enviar correos, incluir attachments, guardar listas de distribución
17 lines (12 loc) • 363 B
JavaScript
class ApplicationError extends Error {
constructor(message, status) {
super();
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message ||
'Something went wrong. Please try again.';
this.status = status || 500;
}
}
module.exports = ApplicationError;