Common Runtime Exceptions
Here are the most common exception classes built into Cangjie, which can be directly used by developers.
Exception | Description |
---|---|
ConcurrentModificationException | Exception caused by concurrent modification. |
IllegalArgumentException | Exception thrown when an invalid or incorrect parameter is passed. |
NegativeArraySizeException | Exception thrown when an array whose size is negative is created |
NoneValueException | Exception thrown when a value does not exist (for example, a key that is sought for does not exist in a map). |
OverflowException | Exception caused by an arithmetic operation overflow. |