Standard Library
interface ILogicException
The interface of errors that come from a mistake in how the program was written, such as calling something in the wrong state.
since 0.1.0-alpha.1linuxwindowswasm
- bases
IException
Overview
Catch it to handle every LogicException.
Examples
try {
throw LogicException("bad state");
} catch (ILogicException e) {
console.writeln(e.message);
}
bad state
See also
- LogicException — An error that signals a mistake in the program's own logic, such as using an object in the wrong state.