JavaBasics-CustomException Example code for the Java Basics: Custom Exception blog post. For more information see Java Basics: Custom Exceptions To run, run the main class CustomExceptionExample.