public class Exception
Known subtypesBluetoothException, CalendarException, CallException, HealthException, HomeException, ParseException, NearbyException, NfcException, BiometricException, Transform.NotInvertibleException, VpnException, IOException, ClassNotFoundException, CloneNotSupportedException, IllegalAccessException, InstantiationException, InterruptedException, RuntimeException, URISyntaxException, ParseException
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
Constructors
public Exception() | Constructs an Exception with no specified detail message. |
public Exception(String s) | Constructs an Exception with the specified detail message. |
public Exception(Throwable cause) | Constructs a new exception with the provided cause. |
public Exception(String s, Throwable cause) | Constructs a new exception with message and cause. |
Inherited methods
Constructor details
Exception
public Exception()Constructs an Exception with no specified detail message.
Exception
public Exception(String s)Constructs an Exception with the specified detail message.
s - the detail message.
Exception
public Exception(Throwable cause)Constructs a new exception with the provided cause.
Parameters
causeThrowable- The cause of the exception.
Exception
public Exception(String s, Throwable cause)Constructs a new exception with message and cause.
Parameters
sString- The detail message.
causeThrowable- The cause of the exception