@@ -10,7 +10,7 @@ use concepts::storage::Locked;
1010use concepts:: storage:: ResponseWithCursor ;
1111use concepts:: storage:: Version ;
1212use concepts:: storage:: http_client_trace:: HttpClientTrace ;
13- use concepts:: { FinishedExecutionError , StrVariant } ;
13+ use concepts:: { FinishedExecutionFailure , StrVariant } ;
1414use concepts:: { FunctionFqn , ParamsParsingError , ResultParsingError } ;
1515use concepts:: { Params , SupportedFunctionReturnValue } ;
1616use tracing:: Span ;
@@ -130,44 +130,44 @@ pub enum FatalError {
130130 Cancelled ,
131131}
132132
133- impl From < FatalError > for FinishedExecutionError {
133+ impl From < FatalError > for FinishedExecutionFailure {
134134 fn from ( err : FatalError ) -> Self {
135135 let reason_generic = err. to_string ( ) ; // Override with err's reason if no information is lost.
136136 match err {
137- FatalError :: NondeterminismDetected { detail } => FinishedExecutionError {
137+ FatalError :: NondeterminismDetected { detail } => FinishedExecutionFailure {
138138 reason : None ,
139139 kind : ExecutionFailureKind :: NondeterminismDetected ,
140140 detail : Some ( detail) ,
141141 } ,
142- FatalError :: OutOfFuel { reason } => FinishedExecutionError {
142+ FatalError :: OutOfFuel { reason } => FinishedExecutionFailure {
143143 reason : Some ( reason) ,
144144 kind : ExecutionFailureKind :: OutOfFuel ,
145145 detail : None ,
146146 } ,
147- FatalError :: ParamsParsingError ( err) => FinishedExecutionError {
147+ FatalError :: ParamsParsingError ( err) => FinishedExecutionFailure {
148148 reason : Some ( reason_generic) ,
149149 kind : ExecutionFailureKind :: Uncategorized ,
150150 detail : err. detail ( ) ,
151151 } ,
152- FatalError :: CannotInstantiate { reason, detail } => FinishedExecutionError {
152+ FatalError :: CannotInstantiate { reason, detail } => FinishedExecutionFailure {
153153 reason : Some ( reason) ,
154154 kind : ExecutionFailureKind :: Uncategorized ,
155155 detail,
156156 } ,
157157 FatalError :: ResultParsingError ( _) | FatalError :: ConstraintViolation { reason : _ } => {
158- FinishedExecutionError {
158+ FinishedExecutionFailure {
159159 reason : Some ( reason_generic) ,
160160 kind : ExecutionFailureKind :: Uncategorized ,
161161 detail : None ,
162162 }
163163 }
164164 FatalError :: ImportedFunctionCallError { detail, .. }
165- | FatalError :: WorkflowTrap { detail, .. } => FinishedExecutionError {
165+ | FatalError :: WorkflowTrap { detail, .. } => FinishedExecutionFailure {
166166 reason : Some ( reason_generic) ,
167167 kind : ExecutionFailureKind :: Uncategorized ,
168168 detail,
169169 } ,
170- FatalError :: Cancelled => FinishedExecutionError {
170+ FatalError :: Cancelled => FinishedExecutionFailure {
171171 kind : ExecutionFailureKind :: Cancelled ,
172172 reason : None ,
173173 detail : None ,
@@ -176,44 +176,44 @@ impl From<FatalError> for FinishedExecutionError {
176176 }
177177}
178178
179- impl From < & FatalError > for FinishedExecutionError {
179+ impl From < & FatalError > for FinishedExecutionFailure {
180180 fn from ( err : & FatalError ) -> Self {
181181 let reason_generic = err. to_string ( ) ; // Override with err's reason if no information is lost.
182182 match err {
183- FatalError :: NondeterminismDetected { detail } => FinishedExecutionError {
183+ FatalError :: NondeterminismDetected { detail } => FinishedExecutionFailure {
184184 reason : None ,
185185 kind : ExecutionFailureKind :: NondeterminismDetected ,
186186 detail : Some ( detail. clone ( ) ) ,
187187 } ,
188- FatalError :: OutOfFuel { reason } => FinishedExecutionError {
188+ FatalError :: OutOfFuel { reason } => FinishedExecutionFailure {
189189 reason : Some ( reason. clone ( ) ) ,
190190 kind : ExecutionFailureKind :: OutOfFuel ,
191191 detail : None ,
192192 } ,
193- FatalError :: ParamsParsingError ( err) => FinishedExecutionError {
193+ FatalError :: ParamsParsingError ( err) => FinishedExecutionFailure {
194194 reason : Some ( reason_generic) ,
195195 kind : ExecutionFailureKind :: Uncategorized ,
196196 detail : err. detail ( ) ,
197197 } ,
198- FatalError :: CannotInstantiate { reason, detail } => FinishedExecutionError {
198+ FatalError :: CannotInstantiate { reason, detail } => FinishedExecutionFailure {
199199 reason : Some ( reason. clone ( ) ) ,
200200 kind : ExecutionFailureKind :: Uncategorized ,
201201 detail : detail. clone ( ) ,
202202 } ,
203203 FatalError :: ResultParsingError ( _) | FatalError :: ConstraintViolation { reason : _ } => {
204- FinishedExecutionError {
204+ FinishedExecutionFailure {
205205 reason : Some ( reason_generic) ,
206206 kind : ExecutionFailureKind :: Uncategorized ,
207207 detail : None ,
208208 }
209209 }
210210 FatalError :: ImportedFunctionCallError { detail, .. }
211- | FatalError :: WorkflowTrap { detail, .. } => FinishedExecutionError {
211+ | FatalError :: WorkflowTrap { detail, .. } => FinishedExecutionFailure {
212212 reason : Some ( reason_generic) ,
213213 kind : ExecutionFailureKind :: Uncategorized ,
214214 detail : detail. clone ( ) ,
215215 } ,
216- FatalError :: Cancelled => FinishedExecutionError {
216+ FatalError :: Cancelled => FinishedExecutionFailure {
217217 kind : ExecutionFailureKind :: Cancelled ,
218218 reason : None ,
219219 detail : None ,
0 commit comments