Uses of Class
java.lang.Throwable
-
Packages that use Throwable Package Description java.io java.lang -
-
Uses of Throwable in java.io
Subclasses of Throwable in java.io Modifier and Type Class Description class
IOError
This error is thrown when a severe I/O error has happened.class
IOException
Signals a general, I/O-related error.Constructors in java.io with parameters of type Throwable Constructor Description IOError(Throwable cause)
Constructs a new instance with its cause filled in.IOException(String message, Throwable cause)
Constructs a new instance of this class with detail message and cause filled in.IOException(Throwable cause)
Constructs a new instance of this class with its detail cause filled in. -
Uses of Throwable in java.lang
Subclasses of Throwable in java.lang Modifier and Type Class Description class
ArithmeticException
Thrown when the an invalid arithmetic operation is attempted.class
ArrayIndexOutOfBoundsException
Thrown when the an array is indexed with a value less than zero, or greater than or equal to the size of the array.class
ArrayStoreException
Thrown when a program attempts to store an element of an incompatible type in an array.class
ClassCastException
Thrown when a program attempts to cast a an object to a type with which it is not compatible.class
ClassNotFoundException
Thrown when an application tries to load in a class through its string name using: TheforName
method in classClass
.class
Error
Error
is the superclass of all classes that represent unrecoverable errors.class
Exception
Exception
is the superclass of all classes that represent recoverable exceptions.class
IllegalArgumentException
Thrown when a method is invoked with an argument which it can not reasonably deal with.class
IncompatibleClassChangeError
IncompatibleClassChangeError
is the superclass of all classes which represent errors that occur when inconsistent class files are loaded into the same running image.class
IndexOutOfBoundsException
Thrown when a program attempts to access a value in an indexable collection using a value which is outside of the range of valid indices.class
LinkageError
LinkageError
is the superclass of all error classes that occur when loading and linking class files.class
NegativeArraySizeException
Thrown when an attempt is made to create an array with a size of less than zero.class
NoSuchFieldError
Thrown when the VM notices that a program tries to reference, on a class or object, a field that does not exist.class
NoSuchFieldException
Thrown when the VM notices that a program tries to reference, on a class or object, a field that does not exist.class
NoSuchMethodError
Thrown when the VM notices that a program tries to reference, on a class or object, a method that does not exist.class
NoSuchMethodException
Thrown when the VM notices that a program tries to reference, on a class or object, a method that does not exist.class
NullPointerException
Thrown when a program tries to access a field or method of an object or an element of an array when there is no instance or array to use, that is if the object or array points tonull
.class
NumberFormatException
Thrown when an invalid value is passed to a string-to-number conversion method.class
ReflectiveOperationException
Superclass of exceptions related to reflection.class
RuntimeException
RuntimeException
is the superclass of all classes that represent exceptional conditions which occur as a result of executing an application in the VM.Methods in java.lang that return Throwable Modifier and Type Method Description Throwable
ClassNotFoundException. getCause()
Returns the cause of this exception (the exception that was raised if an error occurred while attempting to load the class; otherwisenull
).Throwable
ClassNotFoundException. getException()
Returns the exception that was raised if an error occurred while attempting to load the class.Constructors in java.lang with parameters of type Throwable Constructor Description ClassNotFoundException(String s, Throwable ex)
Constructs aClassNotFoundException
with the specified detail message and optional exception that was raised while loading the class.Error(String detailMessage, Throwable throwable)
Constructs a newError
with the current stack trace, the specified detail message and the specified cause.Error(Throwable throwable)
Constructs a newError
with the current stack trace and the specified cause.Exception(String detailMessage, Throwable throwable)
Constructs a newException
with the current stack trace, the specified detail message and the specified cause.Exception(Throwable throwable)
Constructs a newException
with the current stack trace and the specified cause.IllegalArgumentException(String message, Throwable cause)
Constructs a newIllegalArgumentException
with the current stack trace, the specified detail message and the specified cause.IllegalArgumentException(Throwable cause)
Constructs a newIllegalArgumentException
with the current stack trace and the specified cause.LinkageError(String detailMessage, Throwable cause)
Constructs a newLinkageError
with the given detail message and cause.ReflectiveOperationException(String message, Throwable cause)
Constructs a new exception with the given detail message and cause.ReflectiveOperationException(Throwable cause)
Constructs a new exception with the given cause.RuntimeException(String detailMessage, Throwable throwable)
Constructs a newRuntimeException
with the current stack trace, the specified detail message and the specified cause.RuntimeException(Throwable throwable)
Constructs a newRuntimeException
with the current stack trace and the specified cause.Throwable(String message, Throwable cause)
Throwable(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Throwable(Throwable cause)
-