Error handling #92
Replies: 9 comments
-
Go-like
Figure out usecases |
Beta Was this translation helpful? Give feedback.
-
Automatic wrappingAvoid go-like Optional wrappingWe can some additional data by wrapping instead of imitating stacktrace |
Beta Was this translation helpful? Give feedback.
-
Error creator component |
Beta Was this translation helpful? Give feedback.
-
https://docs.rs/stacktrace/latest/stacktrace/ Rust uses It might be useful to provide an ability to use different kinds of errors This though must be carefully thought about |
Beta Was this translation helpful? Give feedback.
-
My current vision is that
3 must be investigated |
Beta Was this translation helpful? Give feedback.
-
How to combine with this? (Problem about mapping messages onto trace levels) |
Beta Was this translation helpful? Give feedback.
-
Solution
|
Beta Was this translation helpful? Give feedback.
-
If tracing start from the place where error is occurred wouldn't it be a problem to keep track how we got there? Maybe component like |
Beta Was this translation helpful? Give feedback.
-
Problem with automatic wrapping and loopsIf anytime message is traveling from one port to another we wrap it with trace, then looped component will add big amount of trace |
Beta Was this translation helpful? Give feedback.
-
Motivation
We don't have methods in FBP so we don't have behaviour-based interfaces for data, but we can use data structure itself as an interface. I.e. we can have
err
(convention/std-type?) struct instead of just string. Motivation is adding "stacktrace" (it's more like path than stack trace because there's no stack (besides go's native stack)) to avoid go's tedious errors wrapping.Possible solutions
Maybe there must be a way to wrap messages like we do in go?
Problems
Tracing must be implemented - #94
Beta Was this translation helpful? Give feedback.
All reactions