Package net.solarnetwork.domain
Class Result.ErrorDetail
java.lang.Object
net.solarnetwork.domain.Result.ErrorDetail
An error detail object.
-
Constructor Summary
ConstructorsConstructorDescriptionErrorDetail(String location, String rejectedValue, String message) Constructor.ErrorDetail(String location, String code, String rejectedValue, String message) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Get an error code.Get the error location.Get the error message.Get the rejected value.
-
Constructor Details
-
ErrorDetail
Constructor.- Parameters:
location- the error location, such as a bean-style path, or null for an overall errorrejectedValue- the value the rejected value, if availablemessage- the error message
-
ErrorDetail
Constructor.- Parameters:
location- the error location, such as a bean-style path, or null for an overall errorcode- the coderejectedValue- the value the rejected value, if availablemessage- the error message
-
-
Method Details
-
getLocation
Get the error location.- Returns:
- the location
-
getCode
Get an error code.- Returns:
- the code
-
getRejectedValue
Get the rejected value.- Returns:
- the rejectedValue
-
getMessage
Get the error message.- Returns:
- the message
-