org.srplib.validation
Class ValidationException

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

public class ValidationException
extends RuntimeException

Validation exception is used to report validation errors.

Author:
Anton Pechinsky
See Also:
Serialized Form

Constructor Summary
ValidationException(String message, Throwable throwable, ValidationErrors validationErrors)
          Creates exception.
ValidationException(ValidationError validationError)
           
ValidationException(ValidationErrors validationErrors)
           
 
Method Summary
 ValidationErrors getValidationErrors()
           
 
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(String message,
                           Throwable throwable,
                           ValidationErrors validationErrors)
Creates exception.

Parameters:
message - String exception message
throwable - Throwable an underlying exception (nullable)
validationErrors - ValidationErrors validation errors object.

ValidationException

public ValidationException(ValidationErrors validationErrors)

ValidationException

public ValidationException(ValidationError validationError)
Method Detail

getValidationErrors

public ValidationErrors getValidationErrors()


Copyright © 2014. All Rights Reserved.