toStackErrorCode method

StackErrorCode toStackErrorCode()

Implementation

StackErrorCode toStackErrorCode() {
  switch (this) {
    case 'STORAGE_CONNECTOR_ERROR':
      return StackErrorCode.storageConnectorError;
    case 'INTERNAL_SERVICE_ERROR':
      return StackErrorCode.internalServiceError;
  }
  throw Exception('$this is not known in enum StackErrorCode');
}