Package com.aerospike.client

Examples of com.aerospike.client.AerospikeException


      }
      catch (IOException ioe) {
                for (int j = 0; j < i; j++) {
                  managers[j].close();
                }
        throw new AerospikeException("Failed to construct event manager: " + Util.getErrorMessage(ioe));
      }
    }
   
    int count = 0;
   
View Full Code Here


        throw ce;
      }
    }
    catch (Exception e) {
      if (!failOnApplicationInit()) {
        throw new AerospikeException(e);
      }
    }
  }
View Full Code Here

        catch (AerospikeException ae) {
      // Fail without retry on non-network errors.
      failOnApplicationError(ae);
        }
        catch (IOException ioe) {
          retryAfterInit(new AerospikeException(ioe));
        }
        catch (Exception e) {
      // Fail without retry on unknown errors.
      failOnApplicationError(new AerospikeException(e));
        }
  }
View Full Code Here

    // Read header.   
    conn.readFully(dataBuffer, MSG_TOTAL_HEADER_SIZE);
    int resultCode = dataBuffer[13] & 0xFF;
 
      if (resultCode != 0 && resultCode != ResultCode.KEY_NOT_FOUND_ERROR) {
        throw new AerospikeException(resultCode);         
      }         
    existed = resultCode == 0;
    emptySocket(conn);
  }
View Full Code Here

         
          if (resultCode == ResultCode.UDF_BAD_RESPONSE) {
                record = parseRecord(opCount, fieldCount, generation, expiration);
                handleUdfError(resultCode);
          }
          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 = dataBuffer[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 = dataBuffer[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 = dataBuffer[3];
     
      // If this is the end marker of the response, do not proceed further
View Full Code Here

    // Read header.   
    conn.readFully(dataBuffer, MSG_TOTAL_HEADER_SIZE);
    int resultCode = dataBuffer[13] & 0xFF;
 
      if (resultCode != 0 && resultCode != ResultCode.KEY_NOT_FOUND_ERROR) {
        throw new AerospikeException(resultCode);         
      }         
    exists = resultCode == 0;
    emptySocket(conn);
  }
View Full Code Here

    conn.readFully(dataBuffer, MSG_TOTAL_HEADER_SIZE);
 
    int resultCode = dataBuffer[13] & 0xFF;
   
      if (resultCode != 0) {
        throw new AerospikeException(resultCode);         
      }         
      emptySocket(conn);
  }
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.