|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.jwalk.JWalkException
org.jwalk.SettingsException
public class SettingsException
SettingsException signals when incorrect test settings have been supplied. This exception may be raised by third-party tools which convert user inputs into the symbolic and numeric types used for all test settings in JWalkers. It caters for a number of fault-kinds, including failure to convert a String to a suitable enumerated value, or failure to convert a String to a suitable integer value. Tools in the JWalk tool-suite may not raise this exception, if they constrain user inputs in such a way that they are always convertible as expected.
Constructor Summary | |
---|---|
SettingsException(java.lang.Object badValue)
Creates a SettingsException for a bad enumerated input. |
|
SettingsException(java.lang.Object badValue,
boolean integral)
Creates a SettingsException for a bad integer input. |
Method Summary | |
---|---|
boolean |
enumConversionFailed()
Reports if the failure was due to a bad Enum conversion. |
java.lang.Object |
getValue()
Returns the value which caused the settings conversion failure. |
boolean |
intConversionFailed()
Reports if the failure was due to bad int conversion. |
Methods inherited from class org.jwalk.JWalkException |
---|
getError |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SettingsException(java.lang.Object badValue)
badValue
- the String form of the bad value.public SettingsException(java.lang.Object badValue, boolean integral)
badValue
- the String form of the bad value.Method Detail |
---|
public java.lang.Object getValue()
public boolean enumConversionFailed()
public boolean intConversionFailed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |