Package com.aerospike.client

Examples of com.aerospike.client.AerospikeException


    if (exception != null) {
      if (exception instanceof AerospikeException) {
        throw (AerospikeException)exception;   
      }
      else {
        throw new AerospikeException(exception);
      }   
    }   
  }
View Full Code Here


      int resultCode = receiveBuffer[5] & 0xFF;

      // The only valid server return codes are "ok" and "not found".
      // If other return codes are received, then abort the batch.
      if (resultCode != 0 && resultCode != ResultCode.KEY_NOT_FOUND_ERROR) {
        throw new AerospikeException(resultCode);               
      }
     
      byte info3 = receiveBuffer[3];

      // If this is the end marker of the response, do not proceed further
View Full Code Here

     
      if (resultCode != 0) {
        if (resultCode == ResultCode.KEY_NOT_FOUND_ERROR) {
          return false;
        }
        throw new AerospikeException(resultCode);
      }

      byte info3 = receiveBuffer[3];
     
      // If this is the end marker of the response, do not proceed further
View Full Code Here

          resizeReceiveBuffer(receiveSize);
        readFully(is, receiveBuffer, receiveSize);
        }
       
      if (resultCode != 0 && resultCode != ResultCode.KEY_NOT_FOUND_ERROR) {
        throw new AerospikeException(resultCode);         
      }         
  }
View Full Code Here

    if (exception != null) {
      if (exception instanceof AerospikeException) {
        throw (AerospikeException)exception;   
      }
      else {
        throw new AerospikeException(exception);
      }   
    }       
  }
View Full Code Here

         
          if (resultCode == ResultCode.UDF_BAD_RESPONSE) {
                record = parseRecord(opCount, fieldCount, generation, expiration);
                handleUdfError();
          }
          throw new AerospikeException(resultCode);
        }
                 
        if (opCount == 0) {
          // Bin data was not returned.
          record = new Record(null, null, generation, expiration);
View Full Code Here

          code = Integer.parseInt(list[2].trim());
          message = list[0] + ':' + list[1] + ' ' + list[3];
      }
      catch (Exception e) {
        // Use generic exception if parse error occurs.
            throw new AerospikeException(resultCode, ret);
      }
     
      throw new AerospikeException(code, message);
    }
  }
View Full Code Here

      int resultCode = receiveBuffer[5] & 0xFF;

      // The only valid server return codes are "ok" and "not found".
      // If other return codes are received, then abort the batch.
      if (resultCode != 0 && resultCode != ResultCode.KEY_NOT_FOUND_ERROR) {
        throw new AerospikeException(resultCode);               
      }

      byte info3 = receiveBuffer[3];
     
      // If this is the end marker of the response, do not proceed further
View Full Code Here

      if (resultCode != 0) {
        if (resultCode == ResultCode.KEY_NOT_FOUND_ERROR) {
          return false;
        }
        throw new AerospikeException(resultCode);
      }

      byte info3 = receiveBuffer[3];
     
      // If this is the end marker of the response, do not proceed further
View Full Code Here

        throw new Exception();
      }
      return is;
    }
    catch (Exception e) {
      throw new AerospikeException("Failed to read resource: " + path);
    }
  }
View Full Code Here

TOP

Related Classes of com.aerospike.client.AerospikeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.