Class ValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ValidationException
    extends java.lang.Exception
    Reports JobSchedulingDataLoader validation exceptions.
    Author:
    Chris Bonham
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ValidationException()
      Constructor for ValidationException.
      ValidationException​(java.lang.String message)
      Constructor for ValidationException.
      ValidationException​(java.lang.String message, java.util.Collection<java.lang.Exception> errors)
      Constructor for ValidationException.
      ValidationException​(java.util.Collection<java.lang.Exception> errors)
      Constructor for ValidationException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns the detail message string.
      java.util.Collection<java.lang.Exception> getValidationExceptions()
      Returns collection of errors.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, 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()
        Constructor for ValidationException.
      • ValidationException

        public ValidationException​(java.lang.String message)
        Constructor for ValidationException.
        Parameters:
        message - exception message.
      • ValidationException

        public ValidationException​(java.util.Collection<java.lang.Exception> errors)
        Constructor for ValidationException.
        Parameters:
        errors - collection of validation exceptions.
      • ValidationException

        public ValidationException​(java.lang.String message,
                                   java.util.Collection<java.lang.Exception> errors)
        Constructor for ValidationException.
        Parameters:
        message - exception message.
        errors - collection of validation exceptions.
    • Method Detail

      • getValidationExceptions

        public java.util.Collection<java.lang.Exception> getValidationExceptions()
        Returns collection of errors.
        Returns:
        collection of errors.
      • getMessage

        public java.lang.String getMessage()
        Returns the detail message string.
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the detail message string.