Standard Exceptions Mandate
This page is dedicated to standard exceptions, because, you know, they're standard.
Here is a list of the most commonly thrown exceptions:
- NullPointerException: Because, honestly, you forgot to initialize the variable.
- IndexOutOfBoundsException: You're out of range, buddy.
- ArrayIndexOutOfBoundsException: Your array is a bit wonky.
- ClassCastException: Whoops, you're trying to fit a square into a round hole.
- ClassCastException: Same as above, but the opposite.
- UnsupportedOperationException: You want to do something, but I just won't do it.
Subpages:
You might be interested in our: