Functions - lang.error

cause
I

Returns the error's cause.

detail
I

Returns the error's detail record.

message
I

Returns the error's message.

stackTrace
I

Returns an object representing the stack trace of the error.

cause

(error e)

returns error?
Isolated Function

Returns the error's cause.

Parameters

  • e error
  • the error value

  • Return Type

    (error?)
  • error cause

detail

(error e)

returns DetailType
Isolated Function

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

Parameters

  • e error
  • the error value

message

(error e)

returns string
Isolated Function

Returns the error's message.

Parameters

  • e error
  • the error value

  • Return Type

    (string)
  • error message

stackTrace

(error e)

returns CallStack
Isolated Function

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