Class Error


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class Error
    extends Object
    Error
    • Constructor Detail

      • Error

        public Error()
    • Method Detail

      • setCode

        public void setCode​(Integer code)
      • getMessage

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

        public void setMessage​(String message)
      • 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 Error
      • fromJson

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

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