1c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrompackage org.bouncycastle.jce.exception;
2c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom
3c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom/**
4c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom *
5c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom * This is an extended exception. Java before version 1.4 did not offer the
6c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom * possibility the attach a cause to an exception. The cause of an exception is
7c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom * the <code>Throwable</code> object which was thrown and caused the
8c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom * exception. This interface must be implemented by all exceptions to accomplish
9c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom * this additional functionality.
10c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom *
11c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom */
12c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrompublic interface ExtException
13c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom{
14c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom
15c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom    /**
16c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom     * Returns the cause of the exception.
17c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom     *
18c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom     * @return The cause of the exception.
19c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom     */
20c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom    Throwable getCause();
21c37f4a04ef89e73a39a59f3c5a179af8c8ab5974Brian Carlstrom}
22