org.springframework.jee.validation
Class InvalidDeploymentUnitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.springframework.jee.validation.InvalidDeploymentUnitException
All Implemented Interfaces:
java.io.Serializable

public class InvalidDeploymentUnitException
extends java.lang.Exception

Exception thrown when an entire deployment unit is invalid. Contains list of exceptions about detailed violations.

Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
InvalidDeploymentUnitException()
           
 
Method Summary
 void addViolation(SpecificationViolation violation)
           
 java.util.List<SpecificationViolation> getViolations()
           
 boolean hasErrors()
           
 
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

InvalidDeploymentUnitException

public InvalidDeploymentUnitException()
Method Detail

addViolation

public void addViolation(SpecificationViolation violation)

getViolations

public java.util.List<SpecificationViolation> getViolations()
Returns:
the violations

hasErrors

public boolean hasErrors()


Copyright 2006 Interface21. All Rights Reserved.