Class Result.ErrorDetail

java.lang.Object
net.solarnetwork.domain.Result.ErrorDetail
Enclosing class:
Result<T>

public static class Result.ErrorDetail extends Object
An error detail object.
  • Constructor Details

    • ErrorDetail

      public ErrorDetail(String location, String rejectedValue, String message)
      Constructor.
      Parameters:
      location - the error location, such as a bean-style path, or null for an overall error
      rejectedValue - the value the rejected value, if available
      message - the error message
    • ErrorDetail

      public ErrorDetail(String location, String code, String rejectedValue, String message)
      Constructor.
      Parameters:
      location - the error location, such as a bean-style path, or null for an overall error
      code - the code
      rejectedValue - the value the rejected value, if available
      message - the error message
  • Method Details

    • getLocation

      public String getLocation()
      Get the error location.
      Returns:
      the location
    • getCode

      public String getCode()
      Get an error code.
      Returns:
      the code
    • getRejectedValue

      public String getRejectedValue()
      Get the rejected value.
      Returns:
      the rejectedValue
    • getMessage

      public String getMessage()
      Get the error message.
      Returns:
      the message