Class ProblemDetails

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.microsoft.kiota.ApiException
io.apicurio.registry.rest.client.models.ProblemDetails
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, Serializable

@Generated("com.microsoft.kiota") public class ProblemDetails extends com.microsoft.kiota.ApiException implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable
All error responses, whether `4xx` or `5xx` will include one of these as the responsebody.
See Also:
  • Constructor Details

    • ProblemDetails

      public ProblemDetails()
      Instantiates a new ProblemDetails and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static ProblemDetails createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a ProblemDetails
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getDetail

      @Nullable public String getDetail()
      Gets the detail property value. A human-readable explanation specific to this occurrence of the problem.
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getInstance

      @Nullable public String getInstance()
      Gets the instance property value. A URI reference that identifies the specific occurrence of the problem.
      Returns:
      a String
    • getMessage

      @Nonnull public String getMessage()
      The primary error message.
      Overrides:
      getMessage in class Throwable
      Returns:
      a String
    • getName

      @Nullable public String getName()
      Gets the name property value. The name of the error (typically a server exception class name).
      Returns:
      a String
    • getStatus

      @Nullable public Integer getStatus()
      Gets the status property value. The HTTP status code.
      Returns:
      a Integer
    • getTitle

      @Nullable public String getTitle()
      Gets the title property value. A short, human-readable summary of the problem type.
      Returns:
      a String
    • getType

      @Nullable public String getType()
      Gets the type property value. A URI reference [RFC3986] that identifies the problem type.
      Returns:
      a String
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      value - Value to set for the AdditionalData property.
    • setDetail

      public void setDetail(@Nullable String value)
      Sets the detail property value. A human-readable explanation specific to this occurrence of the problem.
      Parameters:
      value - Value to set for the detail property.
    • setInstance

      public void setInstance(@Nullable String value)
      Sets the instance property value. A URI reference that identifies the specific occurrence of the problem.
      Parameters:
      value - Value to set for the instance property.
    • setName

      public void setName(@Nullable String value)
      Sets the name property value. The name of the error (typically a server exception class name).
      Parameters:
      value - Value to set for the name property.
    • setStatus

      public void setStatus(@Nullable Integer value)
      Sets the status property value. The HTTP status code.
      Parameters:
      value - Value to set for the status property.
    • setTitle

      public void setTitle(@Nullable String value)
      Sets the title property value. A short, human-readable summary of the problem type.
      Parameters:
      value - Value to set for the title property.
    • setType

      public void setType(@Nullable String value)
      Sets the type property value. A URI reference [RFC3986] that identifies the problem type.
      Parameters:
      value - Value to set for the type property.