We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6519f32 commit 126d010Copy full SHA for 126d010
1 file changed
packages/dogs_core/lib/src/structure/harbinger.dart
@@ -31,8 +31,19 @@ class StructureHarbinger<T> {
31
/// Creates a new [StructureHarbinger] for the supplied [structure] and [engine].
32
StructureHarbinger(this.structure, this.engine) {
33
fieldConverters = structure.fields.map((e) {
34
- final fieldConverter = getConverter(engine, structure, e);
35
- return (field: e, converter: fieldConverter);
+ try {
+ final fieldConverter = getConverter(engine, structure, e);
36
+ return (field: e, converter: fieldConverter);
37
+ } on DogException catch (exception, trace) {
38
+ throw DogFieldSerializerException(
39
+ "Exception occurred while collecting structure converters",
40
+ null,
41
+ structure,
42
+ e,
43
+ exception,
44
+ trace,
45
+ );
46
+ }
47
}).toList();
48
}
49
0 commit comments