Standard Library
interface IRuntimeException
The interface of errors that arise while a program runs, such as a bad argument or a failed operation.
since 0.1.0-alpha.1linuxwindowswasm
- bases
IException
Overview
Catch it to handle every RuntimeException. RuntimeException is the class that implements it.
Examples
try {
throw RuntimeException("out of range");
} catch (IRuntimeException e) {
console.writeln(e.message);
}
out of range
See also
- RuntimeException — The error the standard library throws when an operation fails at run time.