Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.thaiopensource.datatype.xsd.regex;

Thrown when an syntactically incorrect regular expression is detected.
 
 public class RegexSyntaxException extends Exception {
   private final int position;

  
Represents an unknown position within a string containing a regular expression.
  static public final int UNKNOWN_POSITION = -1;
  public RegexSyntaxException(String detail) {
    this(detail);
  }
  public RegexSyntaxException(String detailint position) {
    super(detail);
    this. = position;
  }

  
Returns the index into the regular expression where the error was detected or UNKNOWN_POSITION if this is unknown.

Returns:
the index into the regular expression where the error was detected, or UNKNOWNN_POSITION if this is unknown
  public int getPosition() {
    return ;
  }
New to GrepCode? Check out our FAQ X