Class ErrorModel


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.7.0")
    public class ErrorModel
    extends Object
    Error model returned in response for all API errors
    • Constructor Detail

      • ErrorModel

        public ErrorModel()
    • Method Detail

      • getType

        @Nullable
        public String getType()
        HTTP error code in 4xx or 5xx.
        Returns:
        type
      • setType

        public void setType​(String type)
      • getStatus

        @Nullable
        public String getStatus()
        HTTP error code in 4xx or 5xx.
        Returns:
        status
      • setStatus

        public void setStatus​(String status)
      • getTitle

        @Nullable
        public String getTitle()
        Description of the HTTP error code.
        Returns:
        title
      • setTitle

        public void setTitle​(String title)
      • getDetail

        @Nullable
        public String getDetail()
        Detailed error message.
        Returns:
        detail
      • setDetail

        public void setDetail​(String detail)
      • getInstance

        @Nullable
        public String getInstance()
        Error code.
        Returns:
        instance
      • setInstance

        public void setInstance​(String instance)
      • getSource

        @Nullable
        public Object getSource()
        Cause of error.
        Returns:
        source
      • setSource

        public void setSource​(Object source)
      • hashCode

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to ErrorModel
      • fromJson

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

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