Package org.influxdb
Class InfluxDBException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.influxdb.InfluxDBException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InfluxDBException.AuthorizationFailedException
,InfluxDBException.CacheMaxMemorySizeExceededException
,InfluxDBException.DatabaseNotFoundException
,InfluxDBException.FieldTypeConflictException
,InfluxDBException.HintedHandOffQueueNotEmptyException
,InfluxDBException.PointsBeyondRetentionPolicyException
,InfluxDBException.RetryBufferOverrunException
,InfluxDBException.UnableToParseException
,InfluxDBIOException
public class InfluxDBException extends RuntimeException
A wrapper for various exceptions caused while interacting with InfluxDB.
- Author:
- Simon Legner
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InfluxDBException.AuthorizationFailedException
static class
InfluxDBException.CacheMaxMemorySizeExceededException
static class
InfluxDBException.DatabaseNotFoundException
static class
InfluxDBException.FieldTypeConflictException
static class
InfluxDBException.HintedHandOffQueueNotEmptyException
static class
InfluxDBException.PointsBeyondRetentionPolicyException
static class
InfluxDBException.RetryBufferOverrunException
static class
InfluxDBException.UnableToParseException
-
Constructor Summary
Constructors Constructor Description InfluxDBException(String message)
InfluxDBException(String message, Throwable cause)
InfluxDBException(Throwable cause)
-
Method Summary
Modifier and Type Method Description static InfluxDBException
buildExceptionForErrorState(InputStream messagePackErrorBody)
Create corresponding InfluxDBException from the message pack error body.static InfluxDBException
buildExceptionForErrorState(String errorBody)
boolean
isRetryWorth()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Method Details
-
isRetryWorth
public boolean isRetryWorth()- Returns:
- true if the operation may succeed if repeated, false otherwise.
-
buildExceptionForErrorState
-
buildExceptionForErrorState
Create corresponding InfluxDBException from the message pack error body.- Parameters:
messagePackErrorBody
- the error body if any- Returns:
- the Exception
-