mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-25 21:58:35 +00:00
415e303ac2
* rewritten how it works a bit: Now compatible with parent exceptions that don't have the Throwable variants. * rewritten how it works a bit: You can now provide the full constructor only; the rest will forward to it. * fixing up style. * rewrite the docs.
18 lines
460 B
Plaintext
18 lines
460 B
Plaintext
public class ExampleException extends Exception {
|
|
public ExampleException() {
|
|
this(null, null);
|
|
}
|
|
|
|
public ExampleException(String message) {
|
|
this(message, null);
|
|
}
|
|
|
|
public ExampleException(Throwable cause) {
|
|
this(cause != null ? cause.getMessage() : null, cause);
|
|
}
|
|
|
|
public ExampleException(String message, Throwable cause) {
|
|
super(message);
|
|
if (cause != null) super.initCause(cause);
|
|
}
|
|
} |