org.dbforms.config
Class MultipleValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dbforms.config.ValidationException
              extended by org.dbforms.config.MultipleValidationException
All Implemented Interfaces:
Serializable

public class MultipleValidationException
extends ValidationException

This exception may be thrown by user code in classes implementing the interceptor interface Allows developers to define more then one error - to be used in conjunction with the XML errors mechanism

See Also:
Serialized Form

Constructor Summary
MultipleValidationException(String message)
          Creates a new MultipleValidationException object.
MultipleValidationException(Vector messages)
          Creates a new MultipleValidationException object.
 
Method Summary
 void addMessage(String message)
          DOCUMENT ME!
 String getMessage()
          Returns the detail message string of this throwable.
 Vector getMessages()
          Gets the messages
 void setMessages(Vector messages)
          Sets the messages
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

MultipleValidationException

public MultipleValidationException(String message)
Creates a new MultipleValidationException object.

Parameters:
message - DOCUMENT ME!

MultipleValidationException

public MultipleValidationException(Vector messages)
Creates a new MultipleValidationException object.

Parameters:
messages - DOCUMENT ME!
Method Detail

getMessage

public String getMessage()
Returns the detail message string of this throwable.
Override the getMessage method of the Throwable class.
Note: the Throwable class' toString method calls getLocalizedMessage() to get the string representation of the detaile error message. The original getLocalizedMessage() implementation calls getMessage().
Overriding getMessage to get the multiple messages from this exception class let Log4j category classes log all the error messages. (fossato, 2002.11.29)

Overrides:
getMessage in class Throwable
Returns:
the detail message string of this Throwable instance

setMessages

public void setMessages(Vector messages)
Sets the messages

Parameters:
messages - The messages to set

getMessages

public Vector getMessages()
Gets the messages

Returns:
Returns a Vector

addMessage

public void addMessage(String message)
DOCUMENT ME!

Parameters:
message - DOCUMENT ME!


Copyright © 2002-2006 DbForms. All Rights Reserved.