Skip to content

Glossary: Java Beyond the Basics

Custom exception

Also written: custom exceptions

Your own exception class, such as OutOfStockException, that names a problem in your program's own words. Extend RuntimeException to make it unchecked.

Where the book teaches it

Related terms

RuntimeExceptionCause