List of Java Exceptions

Guardian17

Active Member
Licensed User
Longtime User
Is there a list of Java Exceptions that can occur when running a program? I am getting a ClassCastException. If I search on "definition of ClassCastException" there is no direct definition -- just a lot of examples that are not related to my application.
 
Definition Found

Thanks for the reply, Edgar, but that one exception was not in that blog.

I did find another good list of Exception Definitions online at:

Exception | Android Developers

under "Known Indirect Subclasses".

The ClassCastException is thrown during runtime when a program "attempts to cast an object to a type with which it is not compatible". So I'll just have to examine my code to figure out which variable or assignment is the cause of the Exception.
 
Upvote 0
If you turn on debugging, it should tell you exactly where in your code the error is occurring.

via Tapatalk
 
Upvote 0
Back
Top