performNotifyPodOperation<K> method
Future<K>
performNotifyPodOperation<
K>({ - String? idToken,
- required String endpointName,
- 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',
);
}
}