toQueryErrorCode method

QueryErrorCode toQueryErrorCode()

Implementation

QueryErrorCode toQueryErrorCode() {
  switch (this) {
    case 'CLOUDFORMATION_STACK_INACTIVE':
      return QueryErrorCode.cloudformationStackInactive;
    case 'CLOUDFORMATION_STACK_NOT_EXISTING':
      return QueryErrorCode.cloudformationStackNotExisting;
  }
  throw Exception('$this is not known in enum QueryErrorCode');
}