Exception (Java Platform SE 8 ) (original) (raw)


public class Exception
extends Throwable
The class Exception and its subclasses are a form ofThrowable that indicates conditions that a reasonable application might want to catch.
The class Exception and any subclasses that are not also subclasses of RuntimeException are checked exceptions. Checked exceptions need to be declared in a method or constructor's throws clause if they can be thrown by the execution of the method or constructor and propagate outside the method or constructor boundary.
Since:
JDK1.0
See Also:
Error, Serialized Form
See The Java™ Language Specification:
11.2 Compile-Time Checking of Exceptions

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.