Namespace: error

bitmessage/messages. error

Members

(static, constant) ERROR :number

It's an error, something was going wrong (e.g. an object got lost).

Type:
  • number
Source:

(static, constant) FATAL :number

It's a fatal error. The node will drop the line for that error and maybe ban you for some time.

Type:
  • number
Source:

(static, constant) WARNING :number

Just a warning.

Type:
  • number
Source:

Methods

(static) decode(buf) → {Object}

Decode error message.

Parameters:
Name Type Description
buf Buffer

Message

Source:
Returns:

Decoded error structure.

Type
Object

(static) decodePayload(buf) → {Object}

Decode error message payload.

Parameters:
Name Type Description
buf Buffer

Message payload

Source:
Returns:

Decoded error structure.

Type
Object

(static) encode(opts) → {Buffer}

Encode error message.

Parameters:
Name Type Description
opts Object

Error options

Source:
Returns:

Encoded message.

Type
Buffer

(static) encodePayload(opts) → {Buffer}

Encode error message payload.

Parameters:
Name Type Description
opts Object

Error options

Source:
Returns:

Encoded payload.

Type
Buffer