Package org.apache.lucene.util.automaton
Class TooComplexToDeterminizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.lucene.util.automaton.TooComplexToDeterminizeException
- All Implemented Interfaces:
Serializable
This exception is thrown when determinizing an automaton would result in one
which has too many states.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTooComplexToDeterminizeException(Automaton automaton, int maxDeterminizedStates) Use this constructor when the automaton failed to determinize.Use this constructor when the RegExp failed to convert to an automaton. -
Method Summary
Modifier and TypeMethodDescriptionReturns the automaton that caused this exception, if any.intGet the maximum number of allowed determinized states.Return the RegExp that caused this exception if any.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
automaton
-
regExp
-
maxDeterminizedStates
private final transient int maxDeterminizedStates
-
-
Constructor Details
-
TooComplexToDeterminizeException
Use this constructor when the RegExp failed to convert to an automaton. -
TooComplexToDeterminizeException
Use this constructor when the automaton failed to determinize.
-
-
Method Details
-
getAutomaton
Returns the automaton that caused this exception, if any. -
getRegExp
Return the RegExp that caused this exception if any. -
getMaxDeterminizedStates
public int getMaxDeterminizedStates()Get the maximum number of allowed determinized states.
-