Class WizardValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openide.WizardValidationException
All Implemented Interfaces:
Serializable

public final class WizardValidationException extends Exception
The exception informs about fail in wizard panel validation and provides a localized description what's wrong. Also can return JComponent which should be focused to correct wrong values.
Since:
4.28
See Also:
  • Constructor Details

    • WizardValidationException

      public WizardValidationException(JComponent source, String message, String localizedMessage)
      Creates a new exception instance.
      Parameters:
      source - component which should have focus to correct wrong values
      message - the detail message
      localizedMessage - description notifies an user what value must be corrected
  • Method Details

    • getSource

      public JComponent getSource()
      Returns:
      JComponent for request focus to correct wrong values or null if there is no useful component to focus it
    • getLocalizedMessage

      public String getLocalizedMessage()
      Overrides:
      getLocalizedMessage in class Throwable
      Returns:
      description will notifies an user what value must be corrected