Common Runtime Exceptions

Here are the most common exception classes built into Cangjie, which can be directly used by developers.

ExceptionDescription
ConcurrentModificationExceptionException caused by concurrent modification.
IllegalArgumentExceptionException thrown when an invalid or incorrect parameter is passed.
NegativeArraySizeExceptionException thrown when an array whose size is negative is created
NoneValueExceptionException thrown when a value does not exist (for example, a key that is sought for does not exist in a map).
OverflowExceptionException caused by an arithmetic operation overflow.