Package org.hawaiiframework.web.resource
Class ValidationErrorResponseResource
- java.lang.Object
-
- org.hawaiiframework.web.resource.ErrorResponseResource
-
- org.hawaiiframework.web.resource.ValidationErrorResponseResource
-
public class ValidationErrorResponseResource extends ErrorResponseResource
Response resource for validation errors.- Since:
- 2.0.0
- Author:
- Paul Klos
-
-
Constructor Summary
Constructors Constructor Description ValidationErrorResponseResource()
ValidationErrorResponseResource(ValidationException validationException)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ValidationErrorResource>
getErrors()
Returns the validation errors.void
setErrors(List<ValidationErrorResource> errors)
Sets the validation errors.-
Methods inherited from class org.hawaiiframework.web.resource.ErrorResponseResource
getContentType, getErrorMessage, getMethod, getQuery, getStatusCode, getStatusMessage, getThrowable, getUri, setContentType, setErrorMessage, setMethod, setQuery, setStatusCode, setStatusMessage, setUri, toString
-
-
-
-
Constructor Detail
-
ValidationErrorResponseResource
public ValidationErrorResponseResource()
-
ValidationErrorResponseResource
public ValidationErrorResponseResource(ValidationException validationException)
-
-
Method Detail
-
getErrors
public List<ValidationErrorResource> getErrors()
Returns the validation errors.- Returns:
- the validation errors
-
setErrors
public void setErrors(List<ValidationErrorResource> errors)
Sets the validation errors.- Parameters:
errors
- the validation errors
-
-