org.sca4j.host.contribution
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.sca4j.host.SCA4JException
              extended by org.sca4j.host.contribution.ContributionException
                  extended by org.sca4j.host.contribution.ValidationException
All Implemented Interfaces:
java.io.Serializable

public abstract class ValidationException
extends ContributionException

Base class for exceptions indicating a contribution has failed validation.

Version:
$Rev: 5224 $ $Date: 2008-08-19 19:07:18 +0100 (Tue, 19 Aug 2008) $
See Also:
Serialized Form

Constructor Summary
protected ValidationException(java.util.List<ValidationFailure<?>> errors, java.util.List<ValidationFailure<?>> warnings)
          Constructor that initializes the initial list of errors and warnings.
 
Method Summary
 java.util.List<ValidationFailure<?>> getErrors()
          Returns a collection of underlying errors associated with this exception.
 java.util.List<ValidationFailure<?>> getWarnings()
          Returns a collection of underlying warnings associated with this exception.
 
Methods inherited from class org.sca4j.host.SCA4JException
getIdentifier, printStackTraceElements
 
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

protected ValidationException(java.util.List<ValidationFailure<?>> errors,
                              java.util.List<ValidationFailure<?>> warnings)
Constructor that initializes the initial list of errors and warnings.

Parameters:
errors - the list of errors
warnings - the list of warnings
Method Detail

getErrors

public java.util.List<ValidationFailure<?>> getErrors()
Returns a collection of underlying errors associated with this exception.

Returns:
the collection of underlying errors

getWarnings

public java.util.List<ValidationFailure<?>> getWarnings()
Returns a collection of underlying warnings associated with this exception.

Returns:
the collection of underlying errors


Copyright © 2008-2010 Service Symphony. All Rights Reserved.