Package org.pcre4j

Class Pcre2CompileError

All Implemented Interfaces:
Serializable

public class Pcre2CompileError extends IllegalArgumentException
See Also:
  • Constructor Details

    • Pcre2CompileError

      public Pcre2CompileError(String pattern, long offset, String message)
      Create a new pattern compilation error.
      Parameters:
      pattern - the pattern
      offset - the offset of the error in the pattern
      message - the error message
    • Pcre2CompileError

      public Pcre2CompileError(String pattern, long offset, String message, Throwable cause)
      Create a new pattern compilation error.
      Parameters:
      pattern - the pattern
      offset - the offset of the error in the pattern
      message - the error message
      cause - the cause of the error
  • Method Details

    • pattern

      public String 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

      public String message()
      Get the error message.
      Returns:
      the error message