org.apache.cayenne.validation
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.cayenne.CayenneRuntimeException
                  extended by org.apache.cayenne.validation.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends CayenneRuntimeException

An exception thrown on unsuccessful validation.

Since:
1.1
See Also:
Serialized Form

Constructor Summary
ValidationException(String message)
           
ValidationException(String message, ValidationResult result)
           
ValidationException(ValidationResult result)
           
 
Method Summary
 ValidationResult getValidationResult()
           
 String toString()
           
 
Methods inherited from class org.apache.cayenne.CayenneRuntimeException
getMessage, getUnlabeledMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(String message)

ValidationException

public ValidationException(ValidationResult result)

ValidationException

public ValidationException(String message,
                           ValidationResult result)
Method Detail

getValidationResult

public ValidationResult getValidationResult()

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.