mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-11 07:55:49 +00:00
ValueError now inherits from CatchableError (#10246)
This commit is contained in:
committed by
Andreas Rumpf
parent
11050d1104
commit
87232a38e4
@@ -606,7 +606,7 @@ type
|
||||
## Raised when assertion is proved wrong.
|
||||
##
|
||||
## Usually the result of using the `assert() template <#assert>`_.
|
||||
ValueError* = object of Defect ## \
|
||||
ValueError* = object of CatchableError ## \
|
||||
## Raised for string and object conversion errors.
|
||||
KeyError* = object of ValueError ## \
|
||||
## Raised if a key cannot be found in a table.
|
||||
|
||||
Reference in New Issue
Block a user