public final class ValidationError extends Object
Response
.Constructor and Description |
---|
ValidationError()
Create a
ValidationError instance. |
ValidationError(String message,
String messageTemplate,
String path,
String invalidValue)
Create a
ValidationError instance. |
Modifier and Type | Method and Description |
---|---|
String |
getInvalidValue()
Returns the string representation of the value failing to pass the constraint.
|
String |
getMessage()
Return the interpolated error message for this validation error.
|
String |
getMessageTemplate()
Return the non-interpolated error message for this validation error.
|
String |
getPath()
Return the string representation of the property path to the value.
|
void |
setInvalidValue(String invalidValue)
Set the value failing to pass the constraint.
|
void |
setMessage(String message)
Return the interpolated error message for this validation error.
|
void |
setMessageTemplate(String messageTemplate)
Set the non-interpolated error message for this validation error.
|
void |
setPath(String path)
Set the string representation of the property path to the value.
|
public ValidationError()
ValidationError
instance. Constructor for JAXB providers.public ValidationError(String message, String messageTemplate, String path, String invalidValue)
ValidationError
instance.message
- interpolated error message.messageTemplate
- non-interpolated error message.path
- property path.invalidValue
- value that failed to pass constraints.public String getMessage()
public void setMessage(String message)
message
- the interpolated error message for this validation error.public String getPath()
public void setPath(String path)
path
- the string representation of the property path to the value.public String getInvalidValue()
public void setInvalidValue(String invalidValue)
invalidValue
- the value failing to pass the constraint.public String getMessageTemplate()
public void setMessageTemplate(String messageTemplate)
messageTemplate
- the non-interpolated error message for this validation error.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.