Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Common Runtime Exceptions

The Cangjie language has built-in the most common exception classes that developers can directly use.

ExceptionDescription
ConcurrentModificationExceptionException caused by concurrent modification
IllegalArgumentExceptionException thrown when passing illegal or incorrect arguments
NegativeArraySizeExceptionException thrown when creating an array with negative size
NoneValueExceptionException caused when a value does not exist, such as a key not found in a Map
OverflowExceptionArithmetic overflow exception