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:
Serializable
- Enclosing class:
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opentelemetry.exporter.internal.FailedExportException
FailedExportException.GrpcExportException, FailedExportException.HttpExportException -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Throwableprivate final GrpcResponseprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGrpcExportException(GrpcResponse response, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the export failed with a response from the server.getCause()Returns the exceptional cause of failure, or null if the export failed with a response from the server.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, httpFailedWithResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
response
-
cause
-
-
Constructor Details
-
GrpcExportException
-
-
Method Details
-
failedWithResponse
public boolean failedWithResponse()Description copied from class:FailedExportExceptionReturns true if the export failed with a response from the server.- Specified by:
failedWithResponsein classFailedExportException
-
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
Returns the exceptional cause of failure, or null if the export failed with a response from the server.
-