Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.net |
Provides exceptions related to socket connections.
|
java.nio |
Defines buffers, which are containers for data.
|
java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files.
|
java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
java.security |
Provides the classes and interfaces for the security framework.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
java.util.logging |
Provides the classes and interfaces of the CLDC platform's core logging facilities.
|
Modifier and Type | Class and Description |
---|---|
class |
EOFException
Signals that an end of file or end of stream has been reached
unexpectedly during input.
|
class |
InterruptedIOException
Signals that an I/O operation has been interrupted.
|
class |
IOException
Signals that an I/O exception of some sort has occurred.
|
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.
|
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 |
IllegalAccessException
An IllegalAccessException is thrown when an application tries
to 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 |
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 |
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 |
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.
|
Modifier and Type | Class and Description |
---|---|
class |
BindException
Signals that an error occurred while attempting to bind a
socket to a local address and port.
|
class |
ConnectException
Signals that an error occurred while attempting to connect a
socket to a remote address and port.
|
class |
NoRouteToHostException
Signals that an error occurred while attempting to connect a
socket to a remote address and port.
|
class |
PortUnreachableException
Signals that an ICMP Port Unreachable message has been
received on a connected datagram.
|
class |
SocketException
Thrown to indicate that there is an error creating or accessing a Socket.
|
class |
UnknownHostException
Thrown to indicate that the IP address of a host could not be determined.
|
Modifier and Type | Class and Description |
---|---|
class |
BufferOverflowException
Unchecked exception thrown when a relative put operation reaches
the target buffer's limit.
|
class |
BufferUnderflowException
Unchecked exception thrown when a relative get operation reaches
the source buffer's limit.
|
Modifier and Type | Class and Description |
---|---|
class |
AsynchronousCloseException
Checked exception received by a thread when another thread closes the
channel or the part of the channel upon which it is blocked in an I/O
operation.
|
class |
ClosedByInterruptException
Checked exception received by a thread when another thread interrupts it
while it is blocked in an I/O operation upon a channel.
|
class |
ClosedChannelException
Checked exception thrown when an attempt is made to invoke or complete an
I/O operation upon channel that is closed, or at least closed to that
operation.
|
class |
IllegalBlockingModeException
Unchecked exception thrown when a blocking-mode-specific operation
is invoked upon a channel in the incorrect blocking mode.
|
class |
NonReadableChannelException
Unchecked exception thrown when an attempt is made to read
from a channel that was not originally opened for reading.
|
class |
NonWritableChannelException
Unchecked exception thrown when an attempt is made to write
to a channel that was not originally opened for writing.
|
Modifier and Type | Class and Description |
---|---|
class |
AtomicMoveNotSupportedException
Checked exception thrown when a file cannot be moved as an atomic file system
operation.
|
class |
ClosedFileSystemException
Unchecked exception thrown when an attempt is made to invoke an operation on
a file and the file system is closed.
|
class |
DirectoryIteratorException
Runtime exception thrown if an I/O error is encountered when iterating over
the entries in a directory.
|
class |
DirectoryNotEmptyException
Checked exception thrown when a file system operation fails because a
directory is not empty.
|
class |
FileAlreadyExistsException
Checked exception thrown when an attempt is made to create a file or
directory and a file of that name already exists.
|
class |
FileSystemException
Thrown when a file system operation fails on one or two files.
|
class |
InvalidPathException
Unchecked exception thrown when path string cannot be converted into a
Path because the path string contains invalid characters, or
the path string is invalid for other file system specific reasons. |
class |
NoSuchFileException
Checked exception thrown when an attempt is made to access a file that does
not exist.
|
class |
NotDirectoryException
Checked exception thrown when a file system operation, intended for a
directory, fails because the file is not a directory.
|
class |
ReadOnlyFileSystemException
Unchecked exception thrown when an attempt is made to update an object
associated with a
read-only FileSystem . |
Modifier and Type | Class and Description |
---|---|
class |
AccessControlException
This exception is thrown by the AccessController to indicate
that a requested access (to a critical system resource such as the
file system or the network) is denied.
|
Modifier and Type | Class and Description |
---|---|
class |
ConcurrentModificationException
This exception may be thrown by methods that have detected concurrent
modification of an object when such modification is not permissible.
|
class |
EmptyStackException
Thrown by methods in the
Stack class to indicate
that the stack is empty. |
class |
NoSuchElementException
Thrown by various accessor methods to indicate that the element being requested
does not exist.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Handler.reportError(String msg,
Exception ex,
int code)
Protected convenience method to report an error.
|
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.