Landin library reference source

core/panic/panic.ldn

1--- A checked index or range is outside its valid extent.
2---
3--- Compiler-check reasons. The representation is the ordinary nonzero
4--- atom carrier; callers compare identities, never assumed integer codes.
5public out_of_range: atom
6--- A checked arithmetic operation cannot represent its result.
7public overflow: atom
8--- A checked conversion cannot represent the source value in its target type.
9public bad_conversion: atom
10--- Execution reached a path declared unreachable.
11public unreachable: atom
12--- The compiler's four panic atoms. A program may supply the specified
13--- nonreturning panic handler; these failures are not allocator error
14--- returns.
15public panic_kind: type = out_of_range | overflow | bad_conversion | unreachable