Class ErrorDetail


  • public class ErrorDetail
    extends Object
    Represents the reasons an operation has failed.
    • Constructor Detail

      • ErrorDetail

        public ErrorDetail()
    • Method Detail

      • getId

        @NotNull
        public String getId()
        The randomly generated UUID identifying this errorDetail, as defined for a variant 4 UUID in [RFC 4122](https://tools.ietf.org/html/rfc4122)
        Returns:
        id
      • setId

        public void setId​(String id)
      • getOriginalId

        public String getOriginalId()
        The UUID of the original request message in the case of an error occurring for an advice message
        Returns:
        originalId
      • setOriginalId

        public void setOriginalId​(String originalId)
      • getErrorType

        @NotNull
        public ErrorDetail.ErrorType getErrorType()
        The type of error that occurred
        Returns:
        errorType
      • getErrorMessage

        @NotNull
        @Size(min=0,
              max=80)
        public String getErrorMessage()
        A short description of the error
        Returns:
        errorMessage
      • setErrorMessage

        public void setErrorMessage​(String errorMessage)
      • providerErrorCode

        public ErrorDetail providerErrorCode​(String providerErrorCode)
      • getProviderErrorCode

        public String getProviderErrorCode()
        The response code received from the voucher vendor in response to an operation.
        Returns:
        providerErrorCode
      • setProviderErrorCode

        public void setProviderErrorCode​(String providerErrorCode)
      • providerErrorMessage

        public ErrorDetail providerErrorMessage​(String providerErrorMessage)
      • getProviderErrorMessage

        public String getProviderErrorMessage()
        The error message received from the voucher vendor in response to an operation.
        Returns:
        providerErrorMessage
      • setProviderErrorMessage

        public void setProviderErrorMessage​(String providerErrorMessage)
      • getDetailMessage

        public Object getDetailMessage()
        A free form detailed description of a particular failure condition may optionally be supplied
        Returns:
        detailMessage
      • setDetailMessage

        public void setDetailMessage​(Object detailMessage)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object