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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProblemDetailscreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.Gets the detail property value.The deserialization information for the current modelGets the instance property value.The primary error message.getName()Gets the name property value.Gets the status property value.getTitle()Gets the title property value.getType()Gets the type property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidSets the detail property value.voidsetInstance(String value) Sets the instance property value.voidSets the name property value.voidSets the status property value.voidSets the title property value.voidSets the type property value.Methods inherited from class com.microsoft.kiota.ApiException
getResponseHeaders, getResponseStatusCode, setResponseHeaders, setResponseStatusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProblemDetails
public ProblemDetails()Instantiates a newProblemDetailsand 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
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
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 -
getInstance
Gets the instance property value. A URI reference that identifies the specific occurrence of the problem.- Returns:
- a
String
-
getMessage
The primary error message.- Overrides:
getMessagein classThrowable- Returns:
- a
String
-
getName
Gets the name property value. The name of the error (typically a server exception class name).- Returns:
- a
String
-
getStatus
Gets the status property value. The HTTP status code.- Returns:
- a
Integer
-
getTitle
Gets the title property value. A short, human-readable summary of the problem type.- Returns:
- a
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
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
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
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
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
Sets the status property value. The HTTP status code.- Parameters:
value- Value to set for the status property.
-
setTitle
Sets the title property value. A short, human-readable summary of the problem type.- Parameters:
value- Value to set for the title property.
-
setType
Sets the type property value. A URI reference [RFC3986] that identifies the problem type.- Parameters:
value- Value to set for the type property.
-