public static RiakException parseErlangError(final String erlangError) {
// TODO, ok, this is lame, but it does the job at the moment
// revisit when more checked exceptions are needed
if (TIMEOUT_TUPLE.equals(erlangError)) {
return new MapReduceTimeoutException();
} else {
return new RiakException(erlangError);
}
}