enrichData method

Future<void> enrichData(
  1. ExternalServicesMgr services,
  2. LocalStoreMgr localStore,
  3. PresentationMgr presentation
)

Enriches message with data from services before processing

Implementation

Future<void> enrichData(
  ExternalServicesMgr services,
  LocalStoreMgr localStore,
  PresentationMgr presentation,
) async {
  __.in_('enrichData');
  try {
    checkInitialized('BaseMessage');
    __.info('Default implementation - no data enrichment needed');
  } catch (e, stackTrace) {
    __.severe('Data enrichment failed', e, stackTrace);
    if (e is hujFrameworkException) {
      rethrow;
    }
    throw hujFrameworkException(
      message: 'Data enrichment failed',
      hujType: hujErrorType.framework,
      originalError: e,
    );
  } finally {
    __.out_('enrichData');
  }
}