Skip to main content
zerotal

Documentation


Documentation / @zerotal/notifications / SmtpResponseError

Class: SmtpResponseError

Defined in: notifications/src/errors.ts:124

Thrown when an SMTP server answers a command with an unexpected status code. Carries the server's own text, which is usually the most useful part.

Extends

Constructors

Constructor

new SmtpResponseError(replyCode, replyText, expected): SmtpResponseError

Defined in: notifications/src/errors.ts:125

Parameters

replyCode

number

replyText

string

expected

number[]

Returns

SmtpResponseError

Overrides

NotificationError.constructor

Properties

code

readonly code: string

Defined in: core/src/errors/ZerotalError.ts:18

Inherited from

NotificationError.code


status

readonly status: number = 500

Defined in: core/src/errors/ZerotalError.ts:19

Inherited from

NotificationError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: core/src/errors/ZerotalError.ts:20

Inherited from

NotificationError.context


replyCode

readonly replyCode: number

Defined in: notifications/src/errors.ts:126


replyText

readonly replyText: string

Defined in: notifications/src/errors.ts:127