com.pietschy.command.configuration.impl
Class ExceptionFactory
java.lang.Object
com.pietschy.command.configuration.impl.ExceptionFactory
class ExceptionFactory
- extends java.lang.Object
A factory for exceptions that ensures parsing information is captured in all exceptions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionFactory
public ExceptionFactory()
setLine
public void setLine(java.lang.String line)
- Sets the current line that is being parsed.
- Parameters:
line - the content of the current line being parsed.
createUnknownPropertyException
public ParseException createUnknownPropertyException(java.lang.String key)
createUnknownPropertyValueException
public ParseException createUnknownPropertyValueException(java.lang.String key,
java.lang.String value,
java.util.Set<java.lang.String> allowedValues)
createUnknownPropertyValueException
public ParseException createUnknownPropertyValueException(java.lang.String key,
java.lang.String value,
java.lang.String firstValue,
java.lang.String... otherValues)
createIllegalFormatException
public ParseException createIllegalFormatException(java.lang.String key,
java.lang.String value,
IllegalFormatException.Type types)
createParseException
public ParseException createParseException(java.lang.String message,
java.lang.Throwable throwable)
createInvalidSyntaxException
public ParseException createInvalidSyntaxException(java.lang.String message)
Copyright © 2006 - 2007 Andrew Pietsch