org.netbeans.spi.wizard
Class WizardException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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
Constructor and Description
WizardException(java.lang.String localizedMessage)
           
WizardException(java.lang.String localizedMessage, java.lang.String stepToReturnTo)
          Creates a new instance of WizardException
 
Method Summary
Modifier and Type Method and Description
 java.lang.String getLocalizedMessage()
           
 java.lang.String getStepToReturnTo()
           
 
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
 

Constructor Detail

WizardException

public WizardException(java.lang.String localizedMessage,
                       java.lang.String stepToReturnTo)
Creates a new instance of WizardException


WizardException

public WizardException(java.lang.String localizedMessage)
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

getStepToReturnTo

public java.lang.String getStepToReturnTo()