Class DataConstraintException

  • All Implemented Interfaces:
    Serializable

    public class DataConstraintException
    extends UMSException
    Exception thrown if data validation fails. The validating data passed to validating functions is checked against optional rules and validating rules specific to the validator classes and this exception is thrown when it doesnot satify those rules.
    See Also:
    Serialized Form
    • Constructor Detail

      • DataConstraintException

        public DataConstraintException()
        Constructor to constuct the exception without any message
      • DataConstraintException

        public DataConstraintException​(String msg)
        Constructor to construct the exception with a message
        Parameters:
        msg - message describing the cause of the exception
      • DataConstraintException

        public DataConstraintException​(String msg,
                                       Throwable rootCause)
        Constructs the exception with a message and an embedded exception
        Parameters:
        msg - the message explaining the exception
        rootCause - the embedded exception, the exception that led to this exception.