/opt/canhelp/node_modules/nodemailer/lib
NameSizeModeActions
addressparser/-0755rm
base64/-0755rm
dkim/-0755rm
fetch/-0755rm
json-transport/-0755rm
mail-composer/-0755rm
mailer/-0755rm
mime-funcs/-0755rm
mime-node/-0755rm
punycode/-0755rm
qp/-0755rm
sendmail-transport/-0755rm
ses-transport/-0755rm
shared/-0755rm
smtp-connection/-0755rm
smtp-pool/-0755rm
smtp-transport/-0755rm
stream-transport/-0755rm
well-known/-0755rm
xoauth2/-0755rm
errors.js17650644editdlrm
nodemailer.js48730644editdlrm
Edit: /opt/canhelp/node_modules/nodemailer/lib/errors.js (1765B)
'use strict'; /** * Nodemailer Error Codes * * Centralized error code definitions for consistent error handling. * * Usage: * const errors = require('./errors'); * let err = new Error('Connection closed'); * err.code = errors.ECONNECTION; */ /** * Error code descriptions for documentation and debugging */ const ERROR_CODES = { // Connection errors ECONNECTION: 'Connection closed unexpectedly', ETIMEDOUT: 'Connection or operation timed out', ESOCKET: 'Socket-level error', EDNS: 'DNS resolution failed', // TLS/Security errors ETLS: 'TLS handshake or STARTTLS failed', EREQUIRETLS: 'REQUIRETLS not supported by server (RFC 8689)', // Protocol errors EPROTOCOL: 'Invalid SMTP server response', EENVELOPE: 'Invalid mail envelope (sender or recipients)', EMESSAGE: 'Message delivery error', ESTREAM: 'Stream processing error', // Authentication errors EAUTH: 'Authentication failed', ENOAUTH: 'Authentication credentials not provided', EOAUTH2: 'OAuth2 token generation or refresh error', // Resource errors EMAXLIMIT: 'Pool resource limit reached (max messages per connection)', // Transport-specific errors ESENDMAIL: 'Sendmail command error', ESES: 'AWS SES transport error', // Configuration and access errors ECONFIG: 'Invalid configuration', EPROXY: 'Proxy connection error', EFILEACCESS: 'File access rejected (disableFileAccess is set)', EURLACCESS: 'URL access rejected (disableUrlAccess is set)', EFETCH: 'HTTP fetch error' }; // Export error codes as string constants and the full definitions object module.exports = { ERROR_CODES }; for (const code of Object.keys(ERROR_CODES)) { module.exports[code] = code; }