Package com.saperion.ngc.exception
Class FieldValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.saperion.ngc.exception.NgcException
com.saperion.ngc.exception.FieldValidationException
- All Implemented Interfaces:
Serializable
Exception thrown by
FieldValidator
when the validation of a field has failed.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible validation errors. -
Constructor Summary
ConstructorsConstructorDescriptionFieldValidationException(FieldValidationException.ValidationError validationError) FieldValidationException(String message, FieldValidationException.ValidationError validationError) FieldValidationException(String message, Throwable cause, FieldValidationException.ValidationError validationError) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FieldValidationException
- Parameters:
validationError- validation error that caused this exception
-
FieldValidationException
public FieldValidationException(String message, FieldValidationException.ValidationError validationError) - Parameters:
message- custom error messagevalidationError- validation error that caused this exception
-
FieldValidationException
public FieldValidationException(String message, Throwable cause, FieldValidationException.ValidationError validationError) - Parameters:
message- custom error messagecause- exception causevalidationError- validation error that caused this exception
-
-
Method Details
-
getValidationError
- Returns:
- validation error that caused this exception
-