Examples of RiakException


Examples of com.basho.riak.client.RiakException

            jg.writeEndObject();
            jg.flush();

            return out.toString("UTF8");
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here

Examples of com.basho.riak.client.RiakException

     */
    public Iterable<String> keys() throws RiakException {
        try {
            return client.listKeys(name);
        } catch (IOException e) {
            throw new RiakException(e);
        }
    }
View Full Code Here

Examples of com.basho.riak.client.RiakException

     *            The error from Riak
     * @return a {@link RiakException} as specific as possible
     * @throws IOException
     */
    public static RiakException parseException(final String json) {
        RiakException ex = null;
        try {
            Map<String, String> exceptionData = parseError(json);

            if (isTimeoutError(exceptionData)) {
                ex = new MapReduceTimeoutException();
            } else {
                ex = new RiakException(json);
            }
        } catch (IOException e) {
            ex = new RiakException(new StringBuilder().append(json).append(PARSE_ERROR).toString(), e);
        }

        return ex;
    }
View Full Code Here

Examples of com.basho.riak.client.api.RiakException

      return out.toString("UTF8");

    } catch (IOException e)
    {
      throw new RiakException(e);
    }
  }
View Full Code Here

Examples of com.basho.riak.client.api.RiakException

      return out.toString("UTF8");

    } catch (IOException e)
    {
      throw new RiakException(e);
    }
  }
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.