com.aerospike.client
Class AerospikeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.aerospike.client.AerospikeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AerospikeException.CommandRejected, AerospikeException.Connection, AerospikeException.InvalidNode, AerospikeException.Parse, AerospikeException.QueryTerminated, AerospikeException.ScanTerminated, AerospikeException.Serialize, AerospikeException.Timeout

public class AerospikeException
extends Exception

Aerospike exceptions that can be thrown from the client.

See Also:
Serialized Form

Nested Class Summary
static class AerospikeException.CommandRejected
          Exception thrown when asynchronous command was rejected because the max concurrent database commands have been exceeded.
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 Summary
AerospikeException()
           
AerospikeException(int resultCode)
           
AerospikeException(int resultCode, Exception e)
           
AerospikeException(int resultCode, String message)
           
AerospikeException(String message)
           
AerospikeException(String message, Exception e)
           
AerospikeException(Throwable e)
           
 
Method Summary
 String getMessage()
           
 int getResultCode()
          Get integer result code.
 boolean keepConnection()
          Should connection be put back into pool.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AerospikeException

public AerospikeException(int resultCode,
                          String message)

AerospikeException

public AerospikeException(int resultCode,
                          Exception e)

AerospikeException

public AerospikeException(int resultCode)

AerospikeException

public AerospikeException(String message,
                          Exception e)

AerospikeException

public AerospikeException(String message)

AerospikeException

public AerospikeException(Throwable e)

AerospikeException

public AerospikeException()
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

keepConnection

public final boolean keepConnection()
Should connection be put back into pool.


getResultCode

public final int getResultCode()
Get integer result code.



Copyright © 2012–2014 Aerospike, Inc. All rights reserved.