com.ozziefix.jlwizard.exceptions
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ozziefix.jlwizard.exceptions.WizardException
              extended by com.ozziefix.jlwizard.exceptions.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends WizardException

This exception is thrown when the validation of a WizardPage fails. It contains an ArrayList of error messages.

Version:
$Revision: 1.1 $
Author:
Jurgen Lust
See Also:
Serialized Form

Constructor Summary
ValidationException()
           Creates a new WizardErrors object.
 
Method Summary
 void addMessage(java.lang.String errorMessage)
           Add an error message to this exception.
 boolean isEmpty()
           is the list of error messages empty?
 java.util.Iterator iterator()
           an Iterator to iterate over the list of error messages.
 
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

ValidationException

public ValidationException()

Creates a new WizardErrors object.

Method Detail

isEmpty

public boolean isEmpty()

is the list of error messages empty?

Returns:
if the list of errors is empty

addMessage

public void addMessage(java.lang.String errorMessage)

Add an error message to this exception.

Parameters:
errorMessage - the error message to add

iterator

public java.util.Iterator iterator()

an Iterator to iterate over the list of error messages.

Returns:
the iterator


Copyright © 2004 - 2005 by Jurgen Lust.