doc "The supertype of all exceptions. A subclass represents
a more specific kind of problem, and may define
additional attributes which propagate information about
problems of that kind."
by "Gavin"
"Tom"
shared class Exception(description=null, cause=null)
extends IdentifiableObject() {
doc "The underlying cause of this exception."
shared Exception? cause;
doc "A description of the problem."
String? description;
//shared StackTrace stackTrace { throw; }
doc "A message describing the problem. This default
implementation returns the description, if any, or
otherwise the message of the cause, if any."
see (description, cause)
shared default String message {
return description else cause?.message else "";
}
shared actual default String string {
return className(this) + " \"" message "\"";
}
doc "Print the stack trace to the standard error of
the virtual machine process."
shared void printStackTrace() {
throw;
}
}