} else if (error.code == Error.METHOD_NOT_FOUND) {
throw new MethodNotFoundException(serviceError);
} else if (error.code == Error.LIMIT_REACHED_ERROR) {
throw new LimitReachedException(serviceError);
} else if (error.code == Error.AUTHORIZATION_ERROR) {
throw new AuthorizationErrorException(serviceError);
} else {
throw new IOException(serviceError);
}
}