org.netbeans.spi.wizard
Class WizardException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.netbeans.spi.wizard.WizardException
- All Implemented Interfaces:
- java.io.Serializable
public final class WizardException
extends java.lang.Exception
Some arguments a user enters in a wizard may be too expensive to validate
as the user is going through the wizard. Therefore, Wizard.finish() throws
WizardException.
Exceptions of this type always have a localized message, and optionally
provide a step in the wizard that to return to, so that the user can
enter corrected information.
- Author:
- Tim Boudreau
- See Also:
- Serialized Form
Constructor Summary
WizardException(java.lang.String localizedMessage)
|
WizardException(java.lang.String localizedMessage,
java.lang.String stepToReturnTo)
Creates a new instance of WizardException |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, 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 |
WizardException
public WizardException(java.lang.String localizedMessage,
java.lang.String stepToReturnTo)
- Creates a new instance of WizardException
WizardException
public WizardException(java.lang.String localizedMessage)
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in class java.lang.Throwable
getStepToReturnTo
public java.lang.String getStepToReturnTo()