performNotifyPodOperation<K> method

Future<K> performNotifyPodOperation<K>({
  1. String? idToken,
  2. required String endpointName,
  3. required Future<K> operation(),
})
inherited

Implementation

Future<K> performNotifyPodOperation<K>({
  String? idToken,
  required String endpointName,
  required Future<K> Function() operation,
}) async {
  try {
    logger.fine(
      'Access to Notify endpoint $endpointName...',
    );

    return await operation();
  } on NotifyPodException catch (e, st) {
    logger.severe(
      'Error in notify endpoint $endpointName: $e',
      e,
      st,
    );
    rethrow;
  } catch (e, st) {
    logger.severe(
      'Error in notify endpoint $endpointName: $e',
      e,
      st,
    );
    throw Exception(
      'Error in notify endpoint $endpointName: $e',
    );
  }
}