toBackfillErrorCode method

BackfillErrorCode toBackfillErrorCode()

Implementation

BackfillErrorCode toBackfillErrorCode() {
  switch (this) {
    case 'ENCRYPTED_PARTITION_ERROR':
      return BackfillErrorCode.encryptedPartitionError;
    case 'INTERNAL_ERROR':
      return BackfillErrorCode.internalError;
    case 'INVALID_PARTITION_TYPE_DATA_ERROR':
      return BackfillErrorCode.invalidPartitionTypeDataError;
    case 'MISSING_PARTITION_VALUE_ERROR':
      return BackfillErrorCode.missingPartitionValueError;
    case 'UNSUPPORTED_PARTITION_CHARACTER_ERROR':
      return BackfillErrorCode.unsupportedPartitionCharacterError;
  }
  throw Exception('$this is not known in enum BackfillErrorCode');
}