org.jboss.jca.validator
Class ValidatorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jboss.jca.validator.ValidatorException
All Implemented Interfaces:
Serializable

public class ValidatorException
extends Exception

Represents a failure in the validator chain

Author:
Stefano Maestri
See Also:
Serialized Form

Constructor Summary
ValidatorException(String message, Collection<Failure> failures)
          Constructs a new exception with the specified detail message.
ValidatorException(String message, Collection<Failure> failures, Throwable cause)
          Constructs a new exception with the specified detail message.
 
Method Summary
 Collection<Failure> getFailures()
          Get the collection of failures
 
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

ValidatorException

public ValidatorException(String message,
                          Collection<Failure> failures)
Constructs a new exception with the specified detail message.

Parameters:
message - The message
failures - collection of failures

ValidatorException

public ValidatorException(String message,
                          Collection<Failure> failures,
                          Throwable cause)
Constructs a new exception with the specified detail message.

Parameters:
message - The message
failures - collection of failures
cause - the cause to be chained
Method Detail

getFailures

public Collection<Failure> getFailures()
Get the collection of failures

Returns:
failures


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)