Class ServiceError2


  • public class ServiceError2
    extends Object
    ServiceError2
    • Constructor Detail

      • ServiceError2

        public ServiceError2()
    • Method Detail

      • getErrorCode

        public String getErrorCode()
        Get errorCode
        Returns:
        errorCode
      • setErrorCode

        public void setErrorCode​(String errorCode)
      • getErrorType

        public String getErrorType()
        Get errorType
        Returns:
        errorType
      • setErrorType

        public void setErrorType​(String errorType)
      • getMessage

        public String getMessage()
        Get message
        Returns:
        message
      • setMessage

        public void setMessage​(String message)
      • getPspReference

        public String getPspReference()
        Get pspReference
        Returns:
        pspReference
      • setPspReference

        public void setPspReference​(String pspReference)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to ServiceError2
      • fromJson

        public static ServiceError2 fromJson​(String jsonString)
                                      throws IOException
        Create an instance of ServiceError2 given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ServiceError2
        Throws:
        IOException - if the JSON string is invalid with respect to ServiceError2
      • toJson

        public String toJson()
        Convert an instance of ServiceError2 to an JSON string
        Returns:
        JSON string