Package com.influxdb.v3.client
Class InfluxDBPartialWriteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.influxdb.v3.client.InfluxDBApiException
com.influxdb.v3.client.InfluxDBApiHttpException
com.influxdb.v3.client.InfluxDBPartialWriteException
- All Implemented Interfaces:
Serializable
HTTP exception for partial write errors returned by InfluxDB 3 write endpoint.
Contains parsed line-level write errors so callers can decide how to handle failed lines.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents one failed line from a partial write response. -
Constructor Summary
ConstructorsConstructorDescriptionInfluxDBPartialWriteException(String message, HttpHeaders headers, int statusCode, List<InfluxDBPartialWriteException.LineError> lineErrors) Construct a new InfluxDBPartialWriteException. -
Method Summary
Modifier and TypeMethodDescriptionLine-level write errors.Methods inherited from class com.influxdb.v3.client.InfluxDBApiHttpException
getHeader, headers, statusCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InfluxDBPartialWriteException
public InfluxDBPartialWriteException(@Nullable String message, @Nullable HttpHeaders headers, int statusCode, @Nonnull List<InfluxDBPartialWriteException.LineError> lineErrors) Construct a new InfluxDBPartialWriteException.- Parameters:
message- detail messageheaders- response headersstatusCode- response status codelineErrors- line-level errors parsed from response body
-
-
Method Details
-
lineErrors
Line-level write errors.- Returns:
- immutable list of line errors
-