@@ -32,7 +32,7 @@ class ContentManagementState extends Equatable {
32
32
this .sources = const [],
33
33
this .sourcesCursor,
34
34
this .sourcesHasMore = false ,
35
- this .errorMessage ,
35
+ this .exception ,
36
36
});
37
37
38
38
/// The currently active tab in the content management section.
@@ -74,8 +74,8 @@ class ContentManagementState extends Equatable {
74
74
/// Indicates if there are more sources to load.
75
75
final bool sourcesHasMore;
76
76
77
- /// Error message if an operation fails .
78
- final String ? errorMessage ;
77
+ /// The error describing an operation failure, if any .
78
+ final HtHttpException ? exception ;
79
79
80
80
/// Creates a copy of this [ContentManagementState] with updated values.
81
81
ContentManagementState copyWith ({
@@ -92,7 +92,7 @@ class ContentManagementState extends Equatable {
92
92
List <Source >? sources,
93
93
String ? sourcesCursor,
94
94
bool ? sourcesHasMore,
95
- String ? errorMessage ,
95
+ HtHttpException ? exception ,
96
96
}) {
97
97
return ContentManagementState (
98
98
activeTab: activeTab ?? this .activeTab,
@@ -108,7 +108,7 @@ class ContentManagementState extends Equatable {
108
108
sources: sources ?? this .sources,
109
109
sourcesCursor: sourcesCursor ?? this .sourcesCursor,
110
110
sourcesHasMore: sourcesHasMore ?? this .sourcesHasMore,
111
- errorMessage : errorMessage ,
111
+ exception : exception ?? this .exception ,
112
112
);
113
113
}
114
114
@@ -127,6 +127,6 @@ class ContentManagementState extends Equatable {
127
127
sources,
128
128
sourcesCursor,
129
129
sourcesHasMore,
130
- errorMessage ,
130
+ exception ,
131
131
];
132
132
}
0 commit comments