org.pietschy.wizard
Class InvalidStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.pietschy.wizard.InvalidStateException
- All Implemented Interfaces:
- java.io.Serializable
- public class InvalidStateException
- extends java.lang.Exception
This exception is thrown by WizardStep
instances if the call to
WizardStep.applyState()
can't be fullfilled. By default this exception's message will
be displayed to the user. To disable this feature, please ensure you call setShowUser(boolean)
with the value of false.
- See Also:
- Serialized Form
Method Summary |
boolean |
isShowUser()
Checks if this exception should be presented to the user. |
void |
setShowUser(boolean showUser)
Configures if this exception should be presented to the user. |
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 |
InvalidStateException
public InvalidStateException()
InvalidStateException
public InvalidStateException(java.lang.String message)
InvalidStateException
public InvalidStateException(java.lang.String message,
java.lang.Throwable cause)
InvalidStateException
public InvalidStateException(java.lang.String message,
boolean showUser)
InvalidStateException
public InvalidStateException(java.lang.String message,
java.lang.Throwable cause,
boolean showUser)
isShowUser
public boolean isShowUser()
- Checks if this exception should be presented to the user.
- Returns:
- true to present the exception to the user, false otherwise.
setShowUser
public void setShowUser(boolean showUser)
- Configures if this exception should be presented to the user.
- Parameters:
showUser
- true to present the exception to the user, false otherwise.
Copyright © 2004 Andrew Pietsch.