Class InternalServerErrorResponse

    • Constructor Detail

      • InternalServerErrorResponse

        public InternalServerErrorResponse​(int code,
                                           byte[] body,
                                           java.net.http.HttpResponse<?> rawResponse,
                                           @Nullable
                                           InternalServerErrorResponse.Data data,
                                           @Nullable
                                           java.lang.Throwable deserializationException)
    • Method Detail

      • from

        public static InternalServerErrorResponse from​(java.net.http.HttpResponse<java.io.InputStream> response)
        Parse a response into an instance of InternalServerErrorResponse. If deserialization of the response body fails, the resulting InternalServerErrorResponse instance will have a null data() value and a non-null deserializationException().
      • fromAsync

        public static java.util.concurrent.CompletableFuture<InternalServerErrorResponse> fromAsync​(java.net.http.HttpResponse<Blob> response)
        Parse a response into an instance of InternalServerErrorResponse asynchronously. If deserialization of the response body fails, the resulting InternalServerErrorResponse 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
      • deserializationException

        public java.util.Optional<java.lang.Throwable> deserializationException()
        Returns the exception if an error occurs while deserializing the response body.