Skip to content

Instantly share code, notes, and snippets.

@benweidig
Created May 16, 2020 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benweidig/934d439bc3f96ae89e22b31e1f348473 to your computer and use it in GitHub Desktop.
Save benweidig/934d439bc3f96ae89e22b31e1f348473 to your computer and use it in GitHub Desktop.
protected Throwable(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) {
if (writableStackTrace) {
fillInStackTrace();
}
else {
stackTrace = null;
}
detailMessage = message;
this.cause = cause;
if (!enableSuppression) {
suppressedExceptions = null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment