Class Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
- Direct Known Subclasses:
BiometricException, ClassNotFoundException, CloneNotSupportedException, InstantiationException, InterruptedException, java.io.IOException, NfcException, ParseException, ParseException, RuntimeException, Transform.NotInvertibleException
The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.
Since: JDK1.0, CLDC 1.0 See Also:Error
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an Exception with no specified detail message.Constructs an Exception with the specified detail message.Constructs a new exception with message and cause.Constructs a new exception with the provided cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Exception
public Exception()Constructs an Exception with no specified detail message. -
Exception
Constructs an Exception with the specified detail message. s - the detail message. -
Exception
Constructs a new exception with the provided cause.
Parameters
cause: The cause of the exception.
-
Exception
-