case ErrorCodes.REQUEST_LIMIT_EXCEEDED:
return new RequestLimitExceededException(error.getMessage(), new Date());
case ErrorCodes.INVALID_VECTOR_FORMAT:
return new InvalidVectorFormatException(error.getMessage(), new Date());
case ErrorCodes.TOO_MANY_IDS:
return new TooManyIdsException(error.getMessage(), new Date());
case ErrorCodes.UNCONSTRAINED_SEARCH: