Class FailedExportException.GrpcExportException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.opentelemetry.exporter.internal.FailedExportException
-
- io.opentelemetry.exporter.internal.FailedExportException.GrpcExportException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- FailedExportException
public static final class FailedExportException.GrpcExportException extends FailedExportException
Represents the failure of a gRPC 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 GrpcResponse
response
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
GrpcExportException(GrpcResponse 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.GrpcResponse
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 GrpcResponse response
-
cause
@Nullable private final java.lang.Throwable cause
-
-
Constructor Detail
-
GrpcExportException
private GrpcExportException(@Nullable GrpcResponse 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 GrpcResponse 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
-
-