Functions - nats

convertData
prepareError

Prepare the error as a Error.

convertData

(Content data)

returns string | byte | error

Parameters

  • Return Type

    (string | byte | error)

prepareError

(string message, error? err)

returns Error

Prepare the error as a Error.

Parameters

  • message string
  • the error message.

  • err error? - ()
  • the error instance.

  • Return Type

    (Error)
  • prepared Error instance.