logo

const class

sys::Err

sys::Obj
  sys::Err

Err is the base class of all exceptions.

Slots

cause

Err cause()

Get the underyling cause exception or null.

Source

make

new make(Str msg := null, Err cause := null)

Construct with specified error message and optional root cause.

Source

message

Str message()

Get the string message passed to the contructor or null if a message is not available.

Source

toStr

override Str toStr()

Return the qualified type name and optional message.

Source

trace

This trace(OutStream out := Sys.out())

Dump the stack trace of this exception to the specified output stream (or Sys.out by default). Return this.

Source

traceToStr

Str traceToStr()

Dump the stack trace of this exception to a Str.

Source