Skip to content

Commit

Permalink
Generate additional AnalysisException constructor
Browse files Browse the repository at this point in the history
In particular, this constructor does not generate a stack trace for
every Exception created -- which is expensive!
  • Loading branch information
peterwvj committed Jan 13, 2017
1 parent aa09247 commit 427eaea
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ public AnalysisExceptionDefinition(JavaName name, Environment env)
addMethod(new SuperConstructorMethod(this, new Argument("String", "message")));
addMethod(new SuperConstructorMethod(this, new Argument("String", "message"), new Argument("Throwable", "cause")));
addMethod(new SuperConstructorMethod(this, new Argument("Throwable", "cause")));
addMethod(new SuperConstructorMethod(this, new Argument("String", "message"), new Argument("Throwable", "cause"),
new Argument("boolean", "enableSuppression"), new Argument("boolean", "writableStackTrace")));
}

public AnalysisExceptionDefinition(String packageName, String name,
Expand Down

0 comments on commit 427eaea

Please sign in to comment.