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 possibleIOExceptionpublic 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
otherwseIOExceptionCopyright © 2014. All Rights Reserved.