Package | Description |
---|---|
java.io | |
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
Modifier and Type | Class and Description |
---|---|
class |
CharConversionException
Base class for character conversion exceptions.
|
class |
EOFException
Signals that an end of file or end of stream has been reached
unexpectedly during input.
|
class |
FileNotFoundException
Signals that an attempt to open the file denoted by a specified pathname
has failed.
|
class |
InterruptedIOException
Signals that an I/O operation has been interrupted.
|
class |
InvalidClassException
Thrown when the Serialization runtime detects one of the following
problems with a Class.
|
class |
InvalidObjectException
Indicates that one or more deserialized objects failed validation
tests.
|
class |
IOException
Signals that an I/O exception of some sort has occurred.
|
class |
NotActiveException
Thrown when serialization or deserialization is not active.
|
class |
NotSerializableException
Thrown when an instance is required to have a Serializable interface.
|
class |
ObjectStreamException
Superclass of all exceptions specific to Object Stream classes.
|
class |
OptionalDataException
Exception indicating the failure of an object read operation due to
unread primitive data, or the end of data belonging to a serialized
object in the stream.
|
class |
StreamCorruptedException
Thrown when control information that was read from an object stream
violates internal consistency checks.
|
class |
SyncFailedException
Signals that a sync operation has failed.
|
class |
UnsupportedEncodingException
The Character Encoding is not supported.
|
class |
UTFDataFormatException
Signals that a malformed string in
modified UTF-8
format has been read in a data
input stream or by any class that implements the data input
interface.
|
class |
WriteAbortedException
Signals that one of the ObjectStreamExceptions was thrown during a
write operation.
|
Modifier and Type | Field and Description |
---|---|
Exception |
WriteAbortedException.detail
Exception that was caught while writing the ObjectStream.
|
Constructor and Description |
---|
WriteAbortedException(String s,
Exception ex)
Constructs a WriteAbortedException with a string describing
the exception and the exception causing the abort.
|
Modifier and Type | Class and Description |
---|---|
class |
ArithmeticException
Thrown when an exceptional arithmetic condition has occurred.
|
class |
ArrayIndexOutOfBoundsException
Thrown to indicate that an array has been accessed with an
illegal index.
|
class |
ArrayStoreException
Thrown to indicate that an attempt has been made to store the
wrong type of object into an array of objects.
|
class |
ClassCastException
Thrown to indicate that the code has attempted to cast an object
to a subclass of which it is not an instance.
|
class |
ClassNotFoundException
Thrown when an application tries to load in a class through its
string name using:
The
forName method in class Class . |
class |
CloneNotSupportedException
Thrown to indicate that the
clone method in class
Object has been called to clone an object, but that
the object's class does not implement the Cloneable
interface. |
class |
EnumConstantNotPresentException
Thrown when an application tries to access an enum constant by name
and the enum type contains no constant with the specified name.
|
class |
IllegalAccessException
An IllegalAccessException is thrown when an application tries
to reflectively create an instance (other than an array),
set or get a field, or invoke a method, but the currently
executing method does not have access to the definition of
the specified class, field, method or constructor.
|
class |
IllegalArgumentException
Thrown to indicate that a method has been passed an illegal or
inappropriate argument.
|
class |
IllegalMonitorStateException
Thrown to indicate that a thread has attempted to wait on an
object's monitor or to notify other threads waiting on an object's
monitor without owning the specified monitor.
|
class |
IllegalStateException
Signals that a method has been invoked at an illegal or
inappropriate time.
|
class |
IllegalThreadStateException
Thrown to indicate that a thread is not in an appropriate state
for the requested operation.
|
class |
IndexOutOfBoundsException
Thrown to indicate that an index of some sort (such as to an array, to a
string, or to a vector) is out of range.
|
class |
InstantiationException
Thrown when an application tries to create an instance of a class
using the
newInstance method in class
Class , but the specified class object cannot be
instantiated. |
class |
InterruptedException
Thrown when a thread is waiting, sleeping, or otherwise occupied,
and the thread is interrupted, either before or during the activity.
|
class |
NegativeArraySizeException
Thrown if an application tries to create an array with negative size.
|
class |
NoSuchFieldException
Signals that the class doesn't have a field of a specified name.
|
class |
NoSuchMethodException
Thrown when a particular method cannot be found.
|
class |
NullPointerException
Thrown when an application attempts to use
null in a
case where an object is required. |
class |
NumberFormatException
Thrown to indicate that the application has attempted to convert
a string to one of the numeric types, but that the string does not
have the appropriate format.
|
class |
ReflectiveOperationException
Common superclass of exceptions thrown by reflective operations in
core reflection.
|
class |
RuntimeException
RuntimeException is the superclass of those
exceptions that can be thrown during the normal operation of the
Java Virtual Machine. |
class |
SecurityException
Thrown by the security manager to indicate a security violation.
|
class |
StringIndexOutOfBoundsException
Thrown by
String methods to indicate that an index
is either negative or greater than the size of the string. |
class |
TypeNotPresentException
Thrown when an application tries to access a type using a string
representing the type's name, but no definition for the type with
the specified name can be found.
|
class |
UnsupportedOperationException
Thrown to indicate that the requested operation is not supported.
|
Modifier and Type | Method and Description |
---|---|
void |
AutoCloseable.close()
Closes this resource, relinquishing any underlying resources.
|