Class FailedExportException.HttpExportException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.opentelemetry.exporter.internal.FailedExportException
-
- io.opentelemetry.exporter.internal.FailedExportException.HttpExportException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FailedExportException
public static final class FailedExportException.HttpExportException extends FailedExportException
Represents the failure of an HTTP exporter.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.opentelemetry.exporter.internal.FailedExportException
FailedExportException.GrpcExportException, FailedExportException.HttpExportException
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwable
cause
private HttpSender.Response
response
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
HttpExportException(HttpSender.Response response, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
failedWithResponse()
Returns true if the export failed with a response from the server.java.lang.Throwable
getCause()
Returns the exceptional cause of failure, or null if the export failed with a response from the server.HttpSender.Response
getResponse()
Returns the response if the export failed with a response from the server, or null if the export failed exceptionally with no response.-
Methods inherited from class io.opentelemetry.exporter.internal.FailedExportException
grpcFailedExceptionally, grpcFailedWithResponse, httpFailedExceptionally, httpFailedWithResponse
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
response
@Nullable private final HttpSender.Response response
-
cause
@Nullable private final java.lang.Throwable cause
-
-
Constructor Detail
-
HttpExportException
private HttpExportException(@Nullable HttpSender.Response response, @Nullable java.lang.Throwable cause)
-
-
Method Detail
-
failedWithResponse
public boolean failedWithResponse()
Description copied from class:FailedExportException
Returns true if the export failed with a response from the server.- Specified by:
failedWithResponse
in classFailedExportException
-
getResponse
@Nullable public HttpSender.Response getResponse()
Returns the response if the export failed with a response from the server, or null if the export failed exceptionally with no response.
-
getCause
@Nullable public java.lang.Throwable getCause()
Returns the exceptional cause of failure, or null if the export failed with a response from the server.- Overrides:
getCause
in classjava.lang.Throwable
-
-