Functions - lang.error

cause

Returns the error's cause.

detail

Returns the error's detail record. The returned value will be immutable.

message

Returns the error's message.

stackTrace

Returns an object representing the stack trace of the error.

cause

(error e)

returns error?

Returns the error's cause.

Parameters

  • e error
  • the error value

  • Return Type

    (error?)
  • error cause

detail

(T0 e)

returns DetailType

Returns the error's detail record. The returned value will be immutable.

Parameters

  • e T0
  • the error value

message

(error e)

returns string

Returns the error's message.

Parameters

  • e error
  • the error value

  • Return Type

    (string)
  • error message

stackTrace

(error e)

returns CallStack

Returns an object representing the stack trace of the error.

Parameters

  • e error
  • the error value

  • Return Type

    (CallStack)
  • a new object representing the stack trace of the error value