case ErrorCodes.INVALID_ORDER:
return new InvalidOrderException(error.getMessage(), new Date());
case ErrorCodes.INVALID_PAGE_SIZE:
return new InvalidPageSizeException(error.getMessage(), new Date());
case ErrorCodes.INVALID_SORT:
return new InvalidSortException(error.getMessage(), new Date());
case ErrorCodes.NOT_FOUND: