Types
Exception
Represents exceptional situaution. All thrown things shouhld inherit Exception.
Attributes
backtrace
Automatic attribute set when creating Exception type instances (including sub-types, as long as super() is called.
Direct children types
AssertFail
- Represents failed asserttion, thrown by assert(). Should be used to catch programming errors.
Error
- Represents an error. Usually more specific error types are used.
ExecutableNotFound
- Occurs when executable was not found in path or when executable was absolute or relative and was not found.
InstantiatingAbstractType
LockFail
MainFail
MatchFail
- Matching failure
NoNext
- Represents attempt to fetch next value of an iterator when it's exhausted
NotImplemented
ReadFail
RequreFail
UndefinedLocalVar
- Represents an error of reading undefined local variable.
Methods
exception_specific_message
(e:
Exception
)
Do nothing. Catch-all for exception_specific_message().
init
(e:
Exception
, message:
Str
)
init
(e:
Exception
, cause:
Exception
)
print_exception
(e:
Exception
, level:
Int
=0, parent:
Exception
=null)
Print exception to stderr. Uses inspect().
to_exit_code
(e:
Exception
)