From ba4fb21032abeea58a06c9d63db034e47af67b75 Mon Sep 17 00:00:00 2001 From: Raynei Date: Thu, 8 Jun 2023 00:55:17 -0400 Subject: [PATCH] fixes #19086: Document exception and defect hierarchy (#22030) * Documented exception and defect hierarchy (#19086) * Fixed style --- doc/manual.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/doc/manual.md b/doc/manual.md index 2f9506a879..aa53c4512f 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -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 -------------------