Exception type
Direct children types
- AssertFail
Represents failed assertion, thrown by assert(). Should be used to catch programming errors. Direct subtypes: 1
- Error
Represents an error. Usually more specific error types are used. Direct subtypes: 24
- ExitException
Represents an exception that should cause exit from the program Direct subtypes: 2
- LockFail
Failure to perform an operation on a lock.
- NoNext
Represents attempt to fetch next value of an iterator when it's exhausted
- ProgramNotFound
Occurs when executable was not found in path or when executable was absolute or relative and was not found.
- ReturnFromBlock
Undocumented
- ThreadFail
Parent type of various thread exceptions
- UndefinedLocalVar
Represents an error of reading undefined local variable.
- UndefinedUpVar
Represents an error of reading undefined upvar variable.
Methods
- assert(val:Any, pattern:Any, e:Exception) Source: stdlib.ngs:308
Throws e with given message if val does not match the pattern Returns
val
- exception_specific_message(e:Exception) Source: stdlib.ngs:7919
Catch-all for exception_specific_message(). Returns
default message
- exception_specific_message(e:Exception) Source: stdlib.ngs:7924
Format exception message for any exception that has .message
- ExitCode(e:Exception) Source: stdlib.ngs:163
Undocumented Returns
Always 240
- init(e:Exception, message:Str) Source: stdlib.ngs:98
Initialize an Exception. Parameters
message Goes into .message Returns
Exception with .backtrace and .message
- init(e:Exception, cause:Exception) Source: stdlib.ngs:104
Initialize an Exception. Returns
Exception with .backtrace and .cause
- init(e:Exception, message:Str, cause:Exception) Source: stdlib.ngs:110
Initialize an Exception. Returns
Exception with .backtrace, .message, and .cause
- init(f:Failure, e:Exception) Source: stdlib.ngs:889
Initialize Failure with the given value.
- print_exception(e:Exception, level:Int=0, parent:Exception=null, echo:Any=method) Source: stdlib.ngs:8058
Print exception to stderr. Uses inspect(). Parameters
level indentation level to use (two spaces for each level) parent parent exception if print_exception() was called for .cause exception