View Javadoc

1   package org.hyphenType.lexerparser.exceptions;
2   
3   import org.hyphenType.datastructure.Options;
4   
5   /**
6    * TODO Change the name of this class. The current name does not say anything
7    * about what this exception means.
8    * 
9    * @author akira
10   */
11  public class StringParsingErrorException extends OptionValuesException {
12      
13      private static final long serialVersionUID = -8487820729585487956L;
14      
15      public static final String DEFAULT_PATTERN = "Could not parse input \"%s\" to the type %s.";
16      
17      public StringParsingErrorException(Throwable cause, Class<? extends Options<?>> optionsInterface, String input, Class<?> type) {
18          super(cause, optionsInterface, DEFAULT_PATTERN, input, type.getName());
19      }
20  }