public class DescriptiveErrorStrategy extends BailErrorStrategy
Provide friendly error messages when parsing errors occurred.
Constructor and description |
---|
DescriptiveErrorStrategy(CharStream charStream) |
Type Params | Return Type | Name and description |
---|---|---|
|
protected String |
createFailedPredicateErrorMessage(org.apache.groovy.groovysh.Parser recognizer, FailedPredicateException e) |
|
protected String |
createInputMismatchErrorMessage(org.apache.groovy.groovysh.Parser recognizer, InputMismatchException e) |
|
protected String |
createNoViableAlternativeErrorMessage(org.apache.groovy.groovysh.Parser recognizer, NoViableAltException e) |
|
public void |
recover(org.apache.groovy.groovysh.Parser recognizer, RecognitionException e) |
|
public Token |
recoverInline(org.apache.groovy.groovysh.Parser recognizer) |
|
protected void |
reportFailedPredicate(org.apache.groovy.groovysh.Parser recognizer, FailedPredicateException e) |
|
protected void |
reportInputMismatch(org.apache.groovy.groovysh.Parser recognizer, InputMismatchException e) |
|
protected void |
reportNoViableAlternative(org.apache.groovy.groovysh.Parser recognizer, NoViableAltException e) |
Methods inherited from class | Name |
---|---|
class BailErrorStrategy |
sync, recoverInline, recover, reset, reportError, reportMatch, inErrorRecoveryMode, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.