public class AerospikeException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
AerospikeException.AsyncQueueFull
Exception thrown when async command was rejected because the
async delay queue is full.
|
static class |
AerospikeException.Connection
Exception thrown when client can't connect to the server.
|
static class |
AerospikeException.InvalidNode
Exception thrown when chosen node is not active.
|
static class |
AerospikeException.Parse
Exception thrown when client can't parse data returned from server.
|
static class |
AerospikeException.QueryTerminated
Exception thrown when query was terminated prematurely.
|
static class |
AerospikeException.ScanTerminated
Exception thrown when scan was terminated prematurely.
|
static class |
AerospikeException.Serialize
Exception thrown when Java serialization error occurs.
|
static class |
AerospikeException.Timeout
Exception thrown when database request expires before completing.
|
Constructor and Description |
---|
AerospikeException(int resultCode) |
AerospikeException(int resultCode,
boolean inDoubt) |
AerospikeException(int resultCode,
String message) |
AerospikeException(int resultCode,
Throwable e) |
AerospikeException(String message) |
AerospikeException(String message,
Throwable e) |
AerospikeException(Throwable e) |
Modifier and Type | Method and Description |
---|---|
boolean |
getInDoubt()
Is it possible that write transaction may have completed.
|
int |
getIteration()
Get number of attempts before failing.
|
String |
getMessage() |
Node |
getNode()
Get last node used.
|
int |
getResultCode()
Get integer result code.
|
boolean |
keepConnection()
Should connection be put back into pool.
|
void |
setInDoubt(boolean isRead,
int commandSentCounter)
Set whether it is possible that the write transaction may have completed
even though this exception was generated.
|
void |
setIteration(int iteration)
Set number of attempts before failing.
|
void |
setNode(Node node)
Set last node used.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AerospikeException(int resultCode, String message)
public AerospikeException(int resultCode, Throwable e)
public AerospikeException(int resultCode)
public AerospikeException(int resultCode, boolean inDoubt)
public AerospikeException(String message)
public AerospikeException(Throwable e)
public String getMessage()
getMessage
in class Throwable
public final boolean keepConnection()
public final Node getNode()
public final void setNode(Node node)
public final int getResultCode()
public final int getIteration()
public final void setIteration(int iteration)
public final boolean getInDoubt()
public final void setInDoubt(boolean isRead, int commandSentCounter)
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.