toFailedItemErrorCode method
Implementation
FailedItemErrorCode toFailedItemErrorCode() {
switch (this) {
case 'INVALID_ARN':
return FailedItemErrorCode.invalidArn;
case 'DUPLICATE_ARN':
return FailedItemErrorCode.duplicateArn;
case 'ITEM_DOES_NOT_EXIST':
return FailedItemErrorCode.itemDoesNotExist;
case 'ACCESS_DENIED':
return FailedItemErrorCode.accessDenied;
case 'LIMIT_EXCEEDED':
return FailedItemErrorCode.limitExceeded;
case 'INTERNAL_ERROR':
return FailedItemErrorCode.internalError;
}
throw Exception('$this is not known in enum FailedItemErrorCode');
}