Class: TLSError

TLSError(desc, msgopt)

TLSError represents an error in tls protocol handling, such as decoding or decryption error, malformatted message or illegal value. It is not used for error emitted from dependent components, such as socket error or file system error.

TLSError has no error code defined.

Constructor

new TLSError(desc, msgopt)

constructs a TLSError.

If msg is an Error, TLSError preserves its properties, including message and stack. If msg is string, it is used as error message. If msg is not provided, TLSError use the alert description name as error message.

Parameters:
Name Type Attributes Description
desc number

alert description

msg string | Error <optional>

error or error message

Source:

Members

description

alert description

Source:

level

alert level

Source: