mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-09 22:43:34 +00:00
* Documented exception and defect hierarchy (#19086) * Fixed style
This commit is contained in:
@@ -5013,6 +5013,38 @@ exceptions inherit from `Defect`.
|
||||
Exceptions that indicate any other runtime error that can be caught inherit from
|
||||
`system.CatchableError` (which is a subtype of `Exception`).
|
||||
|
||||
```
|
||||
Exception
|
||||
|-- CatchableError
|
||||
| |-- IOError
|
||||
| | `-- EOFError
|
||||
| |-- OSError
|
||||
| |-- ResourceExhaustedError
|
||||
| `-- ValueError
|
||||
| `-- KeyError
|
||||
`-- Defect
|
||||
|-- AccessViolationDefect
|
||||
|-- ArithmeticDefect
|
||||
| |-- DivByZeroDefect
|
||||
| `-- OverflowDefect
|
||||
|-- AssertionDefect
|
||||
|-- DeadThreadDefect
|
||||
|-- FieldDefect
|
||||
|-- FloatingPointDefect
|
||||
| |-- FloatDivByZeroDefect
|
||||
| |-- FloatInvalidOpDefect
|
||||
| |-- FloatOverflowDefect
|
||||
| |-- FloatUnderflowDefect
|
||||
| `-- InexactDefect
|
||||
|-- IndexDefect
|
||||
|-- NilAccessDefect
|
||||
|-- ObjectAssignmentDefect
|
||||
|-- ObjectConversionDefect
|
||||
|-- OutOfMemoryDefect
|
||||
|-- RangeDefect
|
||||
|-- ReraiseDefect
|
||||
`-- StackOverflowDefect
|
||||
```
|
||||
|
||||
Imported exceptions
|
||||
-------------------
|
||||
|
||||
Reference in New Issue
Block a user