Examples of RedisException


Examples of com.lambdaworks.redis.RedisException

                String node = iterator.next();
                RedisClusterNode partition = parseNode(node);
                result.addPartition(partition);
            }
        } catch (Exception e) {
            throw new RedisException("Cannot parse " + nodes, e);
        }

        return result;
    }
View Full Code Here

Examples of com.lambdaworks.redis.RedisException

        output.add(bytes == null ? null : codec.decodeValue(bytes));
    }

    @Override
    public void setError(ByteBuffer error) {
        output.add(new RedisException(decodeAscii(error)));
    }
View Full Code Here

Examples of com.lambdaworks.redis.RedisException

    @Override
    public void complete(int depth) {
        if (depth == 1) {
            Command<K, V, ?> cmd = queue.remove();
            CommandOutput<K, V, ?> o = cmd.getOutput();
            output.add(!o.hasError() ? o.get() : new RedisException(o.getError()));
            cmd.complete();
        } else if (depth == 0 && !queue.isEmpty()) {
            for (Command<K, V, ?> cmd : queue) {
                cmd.complete();
            }
View Full Code Here

Examples of com.lambdaworks.redis.RedisException

            case '+': return SINGLE;
            case '-': return ERROR;
            case ':': return INTEGER;
            case '$': return BULK;
            case '*': return MULTI;
            defaultthrow new RedisException("Invalid first byte");
        }
    }
View Full Code Here

Examples of org.jredis.RedisException

        // check response status
        //
    ResponseStatus status = Assert.notNull (response.getStatus(), "status from response object", ProviderException.class);
    if(status.isError()) {
      Log.error ("Error response for " + cmd.code + " => " + status.message());
      throw new RedisException(cmd, status.message());
    }
    /* this is handled by the super class */
//    else if(status.code() == ResponseStatus.Code.CIAO) {
//      // normal for quit and shutdown commands.  we disconnect too.
//      disconnect();
View Full Code Here

Examples of org.jredis.RedisException

        throw new ExecutionException ("Bug -- Request processing encountered exceptions but CRE is null", new ProviderException());
      }
    }
    // check for Redis Errors
    if(response.isError())
      throw new ExecutionException("Redis Exception on ["+cmd.name()+"] " + response.getStatus().message(), new RedisException(cmd, response.getStatus().message()));
  }
View Full Code Here

Examples of org.jredis.RedisException

    // 3 - Status
    //
    status = Assert.notNull (response.getStatus(), "status from response object", ProviderException.class);
    if(status.isError()) {
      Log.error ("Error response for " + cmd.code + " => " + status.message());
      throw new RedisException(cmd, status.message());
    }
    else if(status.code() == ResponseStatus.Code.CIAO) {
      // normal for quit and shutdown commands.  we disconnect too.
      disconnect();
    }
View Full Code Here

Examples of org.jredis.RedisException

    // 3 - Status
    //
    status = Assert.notNull (response.getStatus(), "status from response object", ProviderException.class);
    if(status.isError()) {
      Log.error ("Error response for " + cmd.code + " => " + status.message());
      throw new RedisException(cmd, status.message());
    }
    else if(status.code() == ResponseStatus.Code.CIAO) {
      // normal for quit and shutdown commands.  we disconnect too.
      disconnect();
    }
View Full Code Here

Examples of org.jredis.RedisException

        throw new ExecutionException ("Bug -- Request processing encountered exceptions but CRE is null", new ProviderException("unknown cause"));
      }
    }
    // check for Redis Errors
    if(response.isError())
      throw new ExecutionException("Redis Exception on ["+cmd.name()+"] " + response.getStatus().message(), new RedisException(cmd, response.getStatus().message()));
  }
View Full Code Here

Examples of org.jredis.RedisException

        // check response status
        //
    ResponseStatus status = Assert.notNull (response.getStatus(), "status from response object", ProviderException.class);
    if(status.isError()) {
      Log.error ("Error response for " + cmd.code + " => " + status.message());
      throw new RedisException(cmd, status.message());
    }
    /* this is handled by the super class */
//    else if(status.code() == ResponseStatus.Code.CIAO) {
//      // normal for quit and shutdown commands.  we disconnect too.
//      disconnect();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.