java.lang · java.base · since Java 1.0
Exception
public class Exception extends ThrowableThe checked-exception root: subclasses (except RuntimeException's tree) must be declared and handled. Extend it for recoverable, caller-actionable failures.
- Checked = part of the method contract, enforced by the compiler
- Custom exceptions: carry context fields, provide (String, Throwable) constructors