Class FailedExportException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.opentelemetry.exporter.internal.FailedExportException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FailedExportException.GrpcExportException
,FailedExportException.HttpExportException
public abstract class FailedExportException extends java.lang.Exception
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FailedExportException.GrpcExportException
Represents the failure of a gRPC exporter.static class
FailedExportException.HttpExportException
Represents the failure of an HTTP exporter.
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description private
FailedExportException(java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
failedWithResponse()
Returns true if the export failed with a response from the server.static FailedExportException.GrpcExportException
grpcFailedExceptionally(java.lang.Throwable cause)
Indicates a gRPC export failed exceptionally without receiving a response from the server.static FailedExportException.GrpcExportException
grpcFailedWithResponse(GrpcResponse response)
Indicates a gRPC export failed after receiving a response from the server.static FailedExportException.HttpExportException
httpFailedExceptionally(java.lang.Throwable cause)
Indicates an HTTP export failed exceptionally without receiving a response from the server.static FailedExportException.HttpExportException
httpFailedWithResponse(HttpSender.Response response)
Indicates an HTTP export failed after receiving a response from the server.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
httpFailedWithResponse
public static FailedExportException.HttpExportException httpFailedWithResponse(HttpSender.Response response)
Indicates an HTTP export failed after receiving a response from the server.
-
httpFailedExceptionally
public static FailedExportException.HttpExportException httpFailedExceptionally(java.lang.Throwable cause)
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
public static FailedExportException.GrpcExportException grpcFailedExceptionally(java.lang.Throwable cause)
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.
-
-