public class ValidationException extends HawaiiException
ValidationResult
,
Serialized FormConstructor and Description |
---|
ValidationException()
Constructs a new
ValidationException with an empty ValidationResult . |
ValidationException(java.util.List<ValidationError> validationErrors)
Constructs a new
ValidationException with the supplied ValidationError s. |
ValidationException(ValidationError validationError)
Constructs a new
ValidationException with the supplied ValidationError . |
ValidationException(ValidationResult validationResult)
Constructs a new
ValidationException with the supplied ValidationResult . |
Modifier and Type | Method and Description |
---|---|
ValidationResult |
getValidationResult()
Returns the validation result containing the validation errors.
|
public ValidationException()
ValidationException
with an empty ValidationResult
.public ValidationException(ValidationResult validationResult)
ValidationException
with the supplied ValidationResult
.validationResult
- the validation result, not nullpublic ValidationException(ValidationError validationError)
ValidationException
with the supplied ValidationError
.validationError
- the validation error, not nullpublic ValidationException(java.util.List<ValidationError> validationErrors)
ValidationException
with the supplied ValidationError
s.validationErrors
- the validation errors, not nullpublic ValidationResult getValidationResult()