Package org.jline.utils
Class RegexTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jline.utils.RegexTimeoutException
-
- All Implemented Interfaces:
java.io.Serializable
public class RegexTimeoutException extends java.lang.RuntimeExceptionThrown when a regular expression match exceeds its time budget.This is an unchecked exception because it is thrown from within
CharSequence.charAt(int), which thejava.util.regexengine calls during matching. Callers that useSafeRegex.matcher(java.util.regex.Pattern, CharSequence)directly should catch this exception; the convenience methodsSafeRegex.matches(java.util.regex.Pattern, java.lang.CharSequence)andSafeRegex.find(java.util.regex.Pattern, java.lang.CharSequence)catch it internally and returnfalse.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegexTimeoutException()RegexTimeoutException(java.lang.String message)
-