com.ivata.mask.validation
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ivata.mask.util.SystemException
              extended bycom.ivata.mask.validation.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends com.ivata.mask.util.SystemException

An instance of this class is thrown by ivata groupware server-side methods when an error occurs that prevents the method from continuing.

Since:
ivata masks 0.5 (2003-02-20)
Version:
$Revision: 1.2 $
Author:
Colin MacLeod colin.macleod@ivata.com
See Also:
ValidationErrors, org.apache.struts.action.ActionMessage, Serialized Form

Constructor Summary
ValidationException(ValidationError error)
          Creates a validation exception.
ValidationException(ValidationErrors errors)
          Creates a validation exception.
 
Method Summary
 ValidationErrors getErrors()
          Contains all of the errors which caused this exception to happen.
 
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(ValidationError error)

Creates a validation exception.

Parameters:
error - error which caused the exception to occur.

ValidationException

public ValidationException(ValidationErrors errors)

Creates a validation exception.

Parameters:
errors - errors which caused the exception to occur.
Method Detail

getErrors

public ValidationErrors getErrors()

Contains all of the errors which caused this exception to happen.

Returns:
the current value of errors.


Copyright © 2001-2005 ivata limited. All Rights Reserved.