Class GenericProblem


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class GenericProblem
    extends Problem
    A generic problem with no additional information beyond that provided by the HTTP status code.
    • Field Detail

      • openapiRequiredFields

        public static HashSet<String> openapiRequiredFields
    • Constructor Detail

      • GenericProblem

        public GenericProblem()
    • Method Detail

      • 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 GenericProblem
      • fromJson

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

        public String toJson()
        Convert an instance of GenericProblem to an JSON string
        Overrides:
        toJson in class Problem
        Returns:
        JSON string