Class FailedExportException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.opentelemetry.exporter.internal.FailedExportException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FailedExportException.GrpcExportException
,FailedExportException.HttpExportException
Represents the failure of a gRPC or 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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Represents the failure of a gRPC exporter.static final class
Represents the failure of an HTTP exporter. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Returns true if the export failed with a response from the server.grpcFailedExceptionally
(Throwable cause) Indicates a gRPC export failed exceptionally without receiving a response from the server.grpcFailedWithResponse
(GrpcResponse response) Indicates a gRPC export failed after receiving a response from the server.httpFailedExceptionally
(Throwable cause) Indicates an HTTP export failed exceptionally without receiving a response from the server.httpFailedWithResponse
(HttpSender.Response response) Indicates an HTTP export failed after receiving a response from the server.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
FailedExportException
-
-
Method Details
-
httpFailedWithResponse
public static FailedExportException.HttpExportException httpFailedWithResponse(HttpSender.Response response) Indicates an HTTP export failed after receiving a response from the server. -
httpFailedExceptionally
Indicates an HTTP export failed exceptionally without receiving a response from the server. -
grpcFailedWithResponse
public static FailedExportException.GrpcExportException grpcFailedWithResponse(GrpcResponse response) Indicates a gRPC export failed after receiving a response from the server. -
grpcFailedExceptionally
Indicates a gRPC export failed exceptionally without receiving a response from the server. -
failedWithResponse
public abstract boolean failedWithResponse()Returns true if the export failed with a response from the server.
-