Class BadRequestResponse
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.stackone.stackone_client_java.models.errors.StackOneError
-
- com.stackone.stackone_client_java.models.errors.BadRequestResponse
-
- All Implemented Interfaces:
java.io.Serializable
public class BadRequestResponse extends StackOneError
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBadRequestResponse.Data
-
Constructor Summary
Constructors Constructor Description BadRequestResponse(int code, byte[] body, java.net.http.HttpResponse<?> rawResponse, BadRequestResponse.Data data, java.lang.Throwable deserializationException)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<BadRequestResponse.Data>data()java.util.Optional<java.lang.Throwable>deserializationException()Returns the exception if an error occurs while deserializing the response body.static BadRequestResponsefrom(java.net.http.HttpResponse<java.io.InputStream> response)Parse a response into an instance of BadRequestResponse.static java.util.concurrent.CompletableFuture<BadRequestResponse>fromAsync(java.net.http.HttpResponse<Blob> response)Parse a response into an instance of BadRequestResponse asynchronously.java.util.Optional<org.openapitools.jackson.nullable.JsonNullable<java.util.List<ProviderError>>>providerErrors()Deprecated.java.util.Optional<java.lang.Double>statusCode()Deprecated.java.util.Optional<java.time.OffsetDateTime>timestamp()Deprecated.-
Methods inherited from class com.stackone.stackone_client_java.models.errors.StackOneError
body, bodyAsString, code, headers, message, rawResponse, toString, withBody, withCode, withRawResponse
-
-
-
-
Constructor Detail
-
BadRequestResponse
public BadRequestResponse(int code, byte[] body, java.net.http.HttpResponse<?> rawResponse, @Nullable BadRequestResponse.Data data, @Nullable java.lang.Throwable deserializationException)
-
-
Method Detail
-
from
public static BadRequestResponse from(java.net.http.HttpResponse<java.io.InputStream> response)
Parse a response into an instance of BadRequestResponse. If deserialization of the response body fails, the resulting BadRequestResponse instance will have a null data() value and a non-null deserializationException().
-
fromAsync
public static java.util.concurrent.CompletableFuture<BadRequestResponse> fromAsync(java.net.http.HttpResponse<Blob> response)
Parse a response into an instance of BadRequestResponse asynchronously. If deserialization of the response body fails, the resulting BadRequestResponse instance will have a null data() value and a non-null deserializationException().
-
statusCode
@Deprecated public java.util.Optional<java.lang.Double> statusCode()
Deprecated.HTTP status code
-
timestamp
@Deprecated public java.util.Optional<java.time.OffsetDateTime> timestamp()
Deprecated.Timestamp when the error occurred
-
providerErrors
@Deprecated public java.util.Optional<org.openapitools.jackson.nullable.JsonNullable<java.util.List<ProviderError>>> providerErrors()
Deprecated.List of provider-specific errors
-
data
public java.util.Optional<BadRequestResponse.Data> data()
-
deserializationException
public java.util.Optional<java.lang.Throwable> deserializationException()
Returns the exception if an error occurs while deserializing the response body.
-
-