Class DataValidationRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mendix.systemwideinterfaces.MendixRuntimeException
-
- com.mendix.systemwideinterfaces.core.DataValidationRuntimeException
-
- All Implemented Interfaces:
java.io.Serializable
public class DataValidationRuntimeException extends MendixRuntimeException
This exception is thrown when data validation of an object member fails (on change, setValue or commit).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataValidationRuntimeException(java.lang.String message)
Creates a data validation exception with the specified message and no failed validations.DataValidationRuntimeException(java.lang.String message, java.util.List<IDataValidation> failedValidations)
Creates a data validation exception with the specified message and failed validations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IDataValidation>
getFailedValidations()
List of failed validations.
-
-
-
Constructor Detail
-
DataValidationRuntimeException
public DataValidationRuntimeException(java.lang.String message)
Creates a data validation exception with the specified message and no failed validations.- Parameters:
message
- exception message
-
DataValidationRuntimeException
public DataValidationRuntimeException(java.lang.String message, java.util.List<IDataValidation> failedValidations)
Creates a data validation exception with the specified message and failed validations.- Parameters:
message
- exception messagefailedValidations
- the validations that caused this exception
-
-
Method Detail
-
getFailedValidations
public java.util.List<IDataValidation> getFailedValidations()
List of failed validations.- Returns:
- failed validations
-
-