Package org.pcre4j
Class Pcre2CompileError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.pcre4j.Pcre2CompileError
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPcre2CompileError(String pattern, long offset, String message) Create a new pattern compilation error.Pcre2CompileError(String pattern, long offset, String message, Throwable cause) Create a new pattern compilation error. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Pcre2CompileError
Create a new pattern compilation error.- Parameters:
pattern- the patternoffset- the offset of the error in the patternmessage- the error message
-
Pcre2CompileError
Create a new pattern compilation error.- Parameters:
pattern- the patternoffset- the offset of the error in the patternmessage- the error messagecause- the cause of the error
-
-
Method Details
-
pattern
Get the pattern that caused the error.- Returns:
- the pattern
-
offset
public long offset()Get the offset of the error in the pattern.- Returns:
- the offset
-
message
Get the error message.- Returns:
- the error message
-