Disable stacktrace for ParserException to improve performance.

Class also marked as final, as it has to be

GitOrigin-RevId: dd4540b903606d1158a0b41d5c88fc9e0703b514
This commit is contained in:
Ilya.Kazakevich
2019-11-13 15:36:44 +00:00
committed by intellij-monorepo-bot
parent 1e3af08747
commit 8d7df7dd7d
@@ -20,7 +20,7 @@ import org.jetbrains.annotations.NotNull;
/**
* @author vlan
*/
public class ParserException extends Exception {
public final class ParserException extends Exception {
@NotNull private final FunctionalParserBase.State myState;
public ParserException(@NotNull String message, @NotNull FunctionalParserBase.State state) {
@@ -32,4 +32,9 @@ public class ParserException extends Exception {
FunctionalParserBase.State getState() {
return myState;
}
@Override
public synchronized Throwable fillInStackTrace() {
return this;
}
}