checkUniqueFieldsArePresent method

void checkUniqueFieldsArePresent(
  1. int? id,
  2. int? table_field_id,
  3. ChangeType? changeType,
  4. int? userId,
)

Implementation

void checkUniqueFieldsArePresent(
    int? id, int? table_field_id, ChangeType? changeType, int? userId) {
  if (id == null)
    throw SqlException(SqlExceptionEnum.FAILED_SELECT,
        cause: "id must not be null");
  if (table_field_id == null)
    throw SqlException(SqlExceptionEnum.FAILED_SELECT,
        cause: "table_field_id must not be null");
  if (changeType == null)
    throw SqlException(SqlExceptionEnum.FAILED_SELECT,
        cause: "change_type must not be null");
  if (userId == null)
    throw SqlException(SqlExceptionEnum.FAILED_SELECT,
        cause: "user_id must not be null");
}