List of Java Exceptions
All public exceptions and errors in the Java API, grouped by package.
✔: Checked exception
<version>: Since version
Package java.lang
-
Throwable
✔-
Exception
✔-
CloneNotSupportedException
✔ -
InterruptedException
✔ -
ReflectiveOperationException
✔ -
RuntimeException
-
ArithmeticException
-
ArrayStoreException
-
ClassCastException
-
EnumConstantNotPresentException
-
IllegalArgumentException
-
IllegalCallerException
9 -
IllegalMonitorStateException
-
IllegalStateException
-
IndexOutOfBoundsException
-
LayerInstantiationException
9 -
NegativeArraySizeException
-
NullPointerException
-
SecurityException
-
TypeNotPresentException
-
UnsupportedOperationException
-
-
-
Error
-
Package java.util
-
ServiceConfigurationError
-
InvalidPropertiesFormatException
✔ -
ConcurrentModificationException
-
EmptyStackException
-
IllegalFormatException
-
DuplicateFormatFlagsException
-
FormatFlagsConversionMismatchException
-
IllegalFormatCodePointException
-
IllegalFormatConversionException
-
IllegalFormatFlagsException
-
IllegalFormatPrecisionException
-
IllegalFormatWidthException
-
MissingFormatArgumentException
-
MissingFormatWidthException
-
UnknownFormatConversionException
-
UnknownFormatFlagsException
-
-
FormatterClosedException
-
IllformedLocaleException
-
MissingResourceException
-
NoSuchElementException
-
TooManyListenersException
✔
Package java.io
-
IOError
-
IOException
✔ -
UncheckedIOException
1.8
Package java.awt
-
AWTError
-
AWTException
✔ -
FontFormatException
✔ -
IllegalComponentStateException
-
HeadlessException
Package java.awt.color
Package java.awt.datatransfer
Package java.awt.dnd
Package java.awt.geom
Package java.awt.image
Package java.awt.print
Package java.beans
Package java.lang.annotation
Package java.lang.instrument
Package java.lang.invoke
Package java.lang.module
Package java.lang.reflect
-
GenericSignatureFormatError
-
InvocationTargetException
✔ -
InaccessibleObjectException
9 -
MalformedParameterizedTypeException
-
MalformedParametersException
1.8 -
UndeclaredThrowableException
Package java.net
-
HttpRetryException
✔ -
SocketTimeoutException
✔ -
MalformedURLException
✔ -
ProtocolException
✔ -
SocketException
✔ -
UnknownHostException
✔ -
UnknownServiceException
✔ -
URISyntaxException
✔
Package java.net.http
-
HttpTimeoutException
✔, 11 -
WebSocketHandshakeException
✔, 11
Package java.nio
-
BufferOverflowException
-
BufferUnderflowException
-
InvalidMarkException
-
ReadOnlyBufferException
Package java.nio.channels
-
ClosedChannelException
✔ -
FileLockInterruptionException
✔ -
InterruptedByTimeoutException
✔ -
IllegalChannelGroupException
-
IllegalSelectorException
-
UnresolvedAddressException
-
UnsupportedAddressTypeException
-
AcceptPendingException
-
AlreadyBoundException
-
AlreadyConnectedException
-
CancelledKeyException
-
ClosedSelectorException
-
ConnectionPendingException
-
IllegalBlockingModeException
-
NoConnectionPendingException
-
NonReadableChannelException
-
NonWritableChannelException
-
NotYetBoundException
-
NotYetConnectedException
-
OverlappingFileLockException
-
ReadPendingException
-
ShutdownChannelGroupException
-
WritePendingException
Package java.nio.charset
-
CoderMalfunctionError
-
CharacterCodingException
✔ -
IllegalCharsetNameException
-
UnsupportedCharsetException
Package java.nio.file
-
FileSystemException
✔ -
DirectoryIteratorException
-
FileSystemAlreadyExistsException
-
FileSystemNotFoundException
-
InvalidPathException
-
ProviderMismatchException
-
ClosedDirectoryStreamException
-
ClosedFileSystemException
-
ClosedWatchServiceException
-
ProviderNotFoundException
-
ReadOnlyFileSystemException
Package java.nio.file.attribute
Package java.rmi
Package java.rmi.activation
Package java.rmi.server
-
ServerCloneException
✔ -
ExportException
✔ -
SkeletonMismatchException
✔ -
SkeletonNotFoundException
✔ -
ServerNotActiveException
✔
Package java.security
-
GeneralSecurityException
✔ -
PrivilegedActionException
✔ -
InvalidParameterException
-
ProviderException
-
AccessControlException
Package java.security.acl
Package java.security.cert
-
CertificateException
✔ -
CertPathBuilderException
✔ -
CertPathValidatorException
✔ -
CertStoreException
✔ -
CRLException
✔
Package java.security.spec
Package java.sql
-
SQLException
✔
Package java.text
Package java.time
Package java.time.format
Package java.time.temporal
Package java.time.zone
Package java.util.concurrent
-
BrokenBarrierException
✔ -
ExecutionException
✔ -
CompletionException
1.8 -
CancellationException
-
RejectedExecutionException
-
TimeoutException
✔
Package java.util.jar
Package java.util.prefs
Package java.util.regex
Package java.util.zip
Package com.sun.jdi
-
AbsentInformationException
✔ -
ClassNotLoadedException
✔ -
IncompatibleThreadStateException
✔ -
InvalidTypeException
✔ -
InvocationException
✔ -
ClassNotPreparedException
-
InconsistentDebugInfoException
-
InternalException
-
InvalidCodeIndexException
-
InvalidLineNumberException
-
InvalidModuleException
9 -
InvalidStackFrameException
-
NativeMethodException
-
ObjectCollectedException
-
VMCannotBeModifiedException
-
VMDisconnectedException
-
VMMismatchException
-
VMOutOfMemoryException
Package com.sun.jdi.connect
Package com.sun.jdi.connect.spi
Package com.sun.jdi.request
Package com.sun.nio.sctp
Package com.sun.tools.attach
-
AgentInitializationException
✔ -
AgentLoadException
✔ -
AttachNotSupportedException
✔ -
AttachOperationFailedException
✔, 9
Package javax.annotation.processing
Package javax.crypto
-
BadPaddingException
✔ -
ExemptionMechanismException
✔ -
IllegalBlockSizeException
✔ -
NoSuchPaddingException
✔ -
ShortBufferException
✔
Package javax.imageio
Package javax.imageio.metadata
Package javax.lang.model
Package javax.lang.model.element
Package javax.lang.model.type
Package javax.management
-
BadAttributeValueExpException
✔ -
BadBinaryOpValueExpException
✔ -
BadStringOperationException
✔ -
InvalidApplicationException
✔ -
JMException
✔ -
JMRuntimeException
Package javax.management.modelmbean
Package javax.management.monitor
Package javax.management.openmbean
-
OpenDataException
✔ -
InvalidKeyException
-
InvalidOpenTypeException
-
KeyAlreadyExistsException
Package javax.management.relation
-
RelationException
✔-
InvalidRelationIdException
✔ -
InvalidRelationServiceException
✔ -
InvalidRelationTypeException
✔ -
InvalidRoleInfoException
✔ -
InvalidRoleValueException
✔ -
RelationNotFoundException
✔ -
RelationServiceNotRegisteredException
✔ -
RelationTypeNotFoundException
✔ -
RoleInfoNotFoundException
✔ -
RoleNotFoundException
✔
-
Package javax.management.remote
Package javax.naming
-
NamingException
✔-
CannotProceedException
✔ -
CommunicationException
✔ -
ConfigurationException
✔ -
ContextNotEmptyException
✔ -
InsufficientResourcesException
✔ -
InterruptedNamingException
✔ -
InvalidNameException
✔ -
LimitExceededException
✔ -
LinkException
✔ -
NameAlreadyBoundException
✔ -
NameNotFoundException
✔ -
NamingSecurityException
✔ -
NoInitialContextException
✔ -
NotContextException
✔ -
OperationNotSupportedException
✔ -
PartialResultException
✔ -
ReferralException
✔ -
ServiceUnavailableException
✔
-
Package javax.naming.directory
-
AttributeInUseException
✔ -
AttributeModificationException
✔ -
InvalidAttributeIdentifierException
✔ -
InvalidAttributesException
✔ -
InvalidAttributeValueException
✔ -
InvalidSearchControlsException
✔ -
InvalidSearchFilterException
✔ -
NoSuchAttributeException
✔ -
SchemaViolationException
✔
Package javax.naming.ldap
Package javax.net.ssl
Package javax.print
Package javax.print.attribute
Package javax.script
Package javax.security.auth
Package javax.security.auth.callback
Package javax.security.auth.login
Package javax.security.cert
Package javax.security.sasl
Package javax.smartcardio
Package javax.sound.midi
Package javax.sound.sampled
Package javax.sql.rowset
Package javax.sql.rowset.serial
Package javax.sql.rowset.spi
Package javax.swing
Package javax.swing.text
Package javax.swing.tree
Package javax.swing.undo
Package javax.transaction.xa
Package javax.xml.catalog
Package javax.xml.crypto
-
KeySelectorException
✔ -
MarshalException
✔ -
NoSuchMechanismException
-
URIReferenceException
✔
Package javax.xml.crypto.dsig
Package javax.xml.datatype
Package javax.xml.parsers
Package javax.xml.stream
Package javax.xml.transform
Package javax.xml.validation
Package javax.xml.xpath
Package jdk.dynalink
Package jdk.jshell
-
JShellException
✔, 9-
EvalException
✔, 9 -
UnresolvedReferenceException
✔, 9
-
Package jdk.jshell.spi
-
ExecutionControlExecutionControlException
✔ -
SPIResolutionException
9
Package jdk.nashorn.api.scripting
-
NashornException
1.8u40
Package jdk.nashorn.api.tree
Package jdk.security.jarsigner
Package netscape.javascript
Package org.ietf.jgss
Package org.w3c.dom
Package org.w3c.dom.events
Package org.w3c.dom.ls
Package org.w3c.dom.ranges
-
RangeException
9, DOM Level 2
Package org.w3c.dom.xpath
Package org.xml.sax
Comments
Be the first to comment!