Package java.lang
Class Exception
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AclNotFoundException,AndroidException,AnnotatedException,ArabicShapingException,BackingStoreException,BrokenBarrierException,CertificateException,CloneNotSupportedException,CryptoException,CTLogStoreImpl.InvalidLogFileException,DataFormatException,DatatypeConfigurationException,DestroyFailedException,ErrnoException,Exception,ExecutionException,GeneralSecurityException,InterruptedException,InvalidFormatException,InvalidPreferencesFormatException,IOException,JSONException,LastOwnerException,LocaleSyntaxException,NoSuchStoreException,NotOwnerException,OperationApplicationException,ParseException,ParserConfigurationException,PinEntryException,PKIXNameConstraintValidatorException,PrivilegedActionException,ReflectiveOperationException,RequestException,RouteException,RuntimeException,SAXException,SerializationException,SQLException,TimeoutException,TooManyListenersException,TransformerException,UnsupportedCallbackException,URISyntaxException,XmlPullParserException,XPathException
public class Exception extends Throwable
Exceptionis the superclass of all classes that represent recoverable exceptions. When exceptions are thrown, they may be caught by application code.- See Also:
Throwable,Error,RuntimeException, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Exception()Constructs a newExceptionthat includes the current stack trace.Exception(String detailMessage)Constructs a newExceptionwith the current stack trace and the specified detail message.Exception(String detailMessage, Throwable throwable)Constructs a newExceptionwith the current stack trace, the specified detail message and the specified cause.Exception(Throwable throwable)Constructs a newExceptionwith the current stack trace and the specified cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
Exception
public Exception()
Constructs a newExceptionthat includes the current stack trace.
-
Exception
public Exception(String detailMessage)
Constructs a newExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-
Exception
public Exception(String detailMessage, Throwable throwable)
Constructs a newExceptionwith the current stack trace, the specified detail message and the specified cause.- Parameters:
detailMessage- the detail message for this exception.throwable- the cause of this exception.
-
Exception
public Exception(Throwable throwable)
Constructs a newExceptionwith the current stack trace and the specified cause.- Parameters:
throwable- the cause of this exception.
-
-