Android APIs
public class

Exception

extends Throwable
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Exception is the superclass of all classes that represent recoverable exceptions. When exceptions are thrown, they may be caught by application code.

Summary

Public Constructors
Exception()
Constructs a new Exception that includes the current stack trace.
Exception(String detailMessage)
Constructs a new Exception with the current stack trace and the specified detail message.
Exception(String detailMessage, Throwable throwable)
Constructs a new Exception with the current stack trace, the specified detail message and the specified cause.
Exception(Throwable throwable)
Constructs a new Exception with the current stack trace and the specified cause.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public Exception ()

Added in API level 1

Constructs a new Exception that includes the current stack trace.

public Exception (String detailMessage)

Added in API level 1

Constructs a new Exception with the current stack trace and the specified detail message.

Parameters
detailMessage String: the detail message for this exception.

public Exception (String detailMessage, Throwable throwable)

Added in API level 1

Constructs a new Exception with the current stack trace, the specified detail message and the specified cause.

Parameters
detailMessage String: the detail message for this exception.
throwable Throwable: the cause of this exception.

public Exception (Throwable throwable)

Added in API level 1

Constructs a new Exception with the current stack trace and the specified cause.

Parameters
throwable Throwable: the cause of this exception.