Fan

 

const class

sys::Err

sys::Obj
  sys::Err

Err is the base class of all exceptions.

Slots

causeSource

Err? cause()

Get the underyling cause exception or null.

makeSource

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

Construct with specified error message and optional root cause.

messageSource

Str? message()

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

toStrSource

override Str toStr()

Overrides sys::Obj.toStr

Return the qualified type name and optional message.

traceSource

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.

traceToStrSource

Str traceToStr()

Dump the stack trace of this exception to a Str.