setup method
void
setup()
Initializes the message and marks it initialized
Implementation
void setup() {
__.in_('setup');
try {
initializeFields(); // Concrete messages implement this
initialize();
__.info('Message initialized successfully');
} catch (e, stackTrace) {
__.severe('Failed to initialize message', e, stackTrace);
if (e is hujFrameworkException) {
rethrow;
}
throw hujFrameworkException(
message: 'Failed to initialize message',
hujType: hujErrorType.framework,
originalError: e,
);
} finally {
__.out_('setup');
}
}