if (error.code == Error.INTERNAL_ERROR) {
throw new InternalErrorException(serviceError);
} else if (error.code == Error.INVALID_PARAMS) {
throw new InvalidParamsException(serviceError);
} else if (error.code == Error.INVALID_REQUEST) {
throw new InvalidRequestException(serviceError);
} 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) {