getValidationErrors method
Returns validation errors for all fields
Implementation
Map<String, String?> getValidationErrors() {
__.in_('getValidationErrors');
try {
checkInitialized('BaseMessage');
final errors = validateFields();
__.info('Got validation errors: ${errors.length}');
return errors;
} catch (e, stackTrace) {
__.severe('Failed to get validation errors', e, stackTrace);
if (e is hujFrameworkException) {
rethrow;
}
throw hujFrameworkException(
message: 'Failed to get validation errors',
hujType: hujErrorType.framework,
originalError: e,
);
} finally {
__.out_('getValidationErrors');
}
}