View Javadoc

1   package org.hyphenType.lexerparser.exceptions;
2   
3   import org.hyphenType.datastructure.Options;
4   
5   public class RegexMismatchException extends OptionValuesException {
6       
7       private static final long serialVersionUID = 7465957351508605749L;
8       
9       public static final String DEFAULT_PATTERN = "The value {0} is not suitable for the option argument {1}, which uses the regex \"{2}\"";
10      
11      public RegexMismatchException(Class<? extends Options<?>> optionsInterface, String value, String name, String regex) {
12          super(optionsInterface, DEFAULT_PATTERN, value, name, regex);
13      }
14  }