Java Error Codes
Java errors explained in plain English. Find your error below.
Error Codes
ArithmeticException
Java
Programming Language
An ArithmeticException means your code tried to do a math operation that is not …
ArrayIndexOutOfBoundsException
Java
Programming Language
An ArrayIndexOutOfBoundsException means your code tried to access a position in …
AssertionError
Java
Programming Language
AssertionError is thrown when a Java assert statement fails.
An assert statement …
ClassCastException
Java
Programming Language
A ClassCastException means your code tried to treat an object as a type it is …
ClassNotFoundException
Java
Programming Language
A ClassNotFoundException means Java tried to load a class by name at runtime but …
CloneNotSupportedException
Java
Programming Language
CloneNotSupportedException is thrown when you try to clone an object that has …
ConcurrentModificationException
Java
Programming Language
A ConcurrentModificationException means your code tried to change a collection …
ConnectException
Java
Programming Language
A ConnectException with the message 'Connection refused' means your Java program …
EnumConstantNotPresentException
Java
Programming Language
EnumConstantNotPresentException is thrown when code tries to look up an enum …
FileNotFoundException
Java
Programming Language
A FileNotFoundException means Java looked for a file at the path you gave it and …
IllegalArgumentException
Java
Programming Language
An IllegalArgumentException means a method received an argument value that is …
IllegalStateException
Java
Programming Language
An IllegalStateException means you called a method at the wrong time — the …
InputMismatchException
Java
Programming Language
InputMismatchException is thrown by the Scanner class when the input it reads …
InterruptedException
Java
Programming Language
An InterruptedException means a thread that was paused (sleeping, waiting, or …
IOException
Java
Programming Language
An IOException means something went wrong when your program tried to read or …
NegativeArraySizeException
Java
Programming Language
NegativeArraySizeException is thrown when you try to create an array with a …
NoClassDefFoundError
Java
Programming Language
A NoClassDefFoundError means a class was present when your code was compiled, …
NoSuchMethodError
Java
Programming Language
A NoSuchMethodError means Java found the class it was looking for, but the …
NullPointerException
Java
Programming Language
A NullPointerException means your code tried to use an object that has no value …
NumberFormatException
Java
Programming Language
A NumberFormatException means Java tried to convert a String into a number but …
OutOfMemoryError
Java
Programming Language
An OutOfMemoryError means the Java Virtual Machine (JVM) ran out of memory and …
RuntimeException
Java
Programming Language
RuntimeException is the parent class for all unchecked exceptions in Java — the …
SocketException
Java
Programming Language
A SocketException means something went wrong with a network connection at the …
StackOverflowError
Java
Programming Language
A StackOverflowError means a method kept calling itself (or other methods) in an …
StringIndexOutOfBoundsException
Java
Programming Language
A StringIndexOutOfBoundsException means your code tried to access a character …
TimeoutException
Java
Programming Language
TimeoutException is thrown when an operation takes longer than the maximum time …
UnsupportedOperationException
Java
Programming Language
An UnsupportedOperationException means you tried to do something that the object …
VerifyError
Java
Programming Language
VerifyError is thrown by the Java Virtual Machine when it finds that compiled …