public class JSONErrorParser extends Object
Constructor and Description |
---|
JSONErrorParser() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isTimeoutException(String json)
Does the
json represent a riak map/reduce timeout exception? |
static RiakException |
parseException(String json)
Parses some Riak error
json into a checked exception of the
most specific type it can manage. |
public static RiakException parseException(String json)
json
into a checked exception of the
most specific type it can manage.json
- The error from RiakRiakException
as specific as possibleIOException
public static boolean isTimeoutException(String json)
json
represent a riak map/reduce timeout exception?json
- an error String from Riakjson
represents an m/r timeout, false
otherwseIOException
Copyright © 2013. All Rights Reserved.