Is it possible to create my own unchecked exception in Java?
Basically, I’d like to
- Have my own exception class,
MyUncheckedException - That does not make me update all methods that call the method that throws this exception with a flood of own
throws
Yes. Extend
MyUncheckedExceptionfromRuntimeException. However, below is the guideline from documentation