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:
java.io.Serializable
public class FieldValidationException extends NgcException
Exception thrown byFieldValidatorwhen the validation of a field has failed.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFieldValidationException.ValidationErrorPossible validation errors.
-
Constructor Summary
Constructors Constructor Description FieldValidationException(FieldValidationException.ValidationError validationError)FieldValidationException(java.lang.String message, FieldValidationException.ValidationError validationError)FieldValidationException(java.lang.String message, java.lang.Throwable cause, FieldValidationException.ValidationError validationError)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldValidationException.ValidationErrorgetValidationError()
-
-
-
Constructor Detail
-
FieldValidationException
public FieldValidationException(FieldValidationException.ValidationError validationError)
- Parameters:
validationError- validation error that caused this exception
-
FieldValidationException
public FieldValidationException(java.lang.String message, FieldValidationException.ValidationError validationError)- Parameters:
message- custom error messagevalidationError- validation error that caused this exception
-
FieldValidationException
public FieldValidationException(java.lang.String message, java.lang.Throwable cause, FieldValidationException.ValidationError validationError)- Parameters:
message- custom error messagecause- exception causevalidationError- validation error that caused this exception
-
-
Method Detail
-
getValidationError
public FieldValidationException.ValidationError getValidationError()
- Returns:
- validation error that caused this exception
-
-