net.dpml.metro
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.dpml.component.ControlException
                  extended by net.dpml.component.ModelException
                      extended by net.dpml.metro.ValidationException
All Implemented Interfaces:
Serializable

public final class ValidationException
extends ModelException

Exception that describes a series of validation issues.

Version:
1.0.4
Author:
Digital Product Meta Library
See Also:
Serialized Form

Nested Class Summary
static class ValidationException.Issue
          Issue implementation.
 
Constructor Summary
ValidationException(URI uri, Object source, ValidationException.Issue[] issues)
          Creation of a new ValidationException.
 
Method Summary
 ValidationException.Issue[] getIssues()
          Return the array iof issues.
 Object getSource()
          Return the source object.
 
Methods inherited from class net.dpml.component.ControlException
getControllerURI, getRootCause
 
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(URI uri,
                           Object source,
                           ValidationException.Issue[] issues)
Creation of a new ValidationException.

Parameters:
uri - controller uri
source - the source object
issues - the array of issues
Method Detail

getSource

public Object getSource()
Return the source object.

Returns:
the source of the validation errors

getIssues

public ValidationException.Issue[] getIssues()
Return the array iof issues.

Returns:
the issues array