Class ConstraintViolatedException

    • Constructor Detail

      • ConstraintViolatedException

        protected ConstraintViolatedException​(String newErrorCode,
                                              String messageFormat,
                                              Throwable cause,
                                              com.redwood.scheduler.api.model.SchedulerEntity causeObject,
                                              String fieldName,
                                              Object[] exceptionDataEN,
                                              Object[] exceptionData)
      • ConstraintViolatedException

        public ConstraintViolatedException​(Throwable cause,
                                           String parameterName,
                                           String message,
                                           com.redwood.scheduler.api.model.SchedulerEntity entity)
        Constraint violated in the context of the given constraint entity.
        Parameters:
        cause - The originating exception, null if this is the originating exception
        parameterName - The name of the parameter that failed to validate.
        message - The message to pass to the user.
        entity - The entity for which the constraint failed.