layout | title | category | tags | order | |||
---|---|---|---|---|---|---|---|
developer-doc |
Errors |
semantics |
|
4 |
Due to its hybrid nature, Enso supports two main exception systems that help users to deal with errors at runtime in the language.
[!WARNING] The actionables for this section are:
- Why do we call it asynchronous, when they are synchronous!?
- Specify the semantics of Enso's async exceptions.
There is a special dynamic dispatch for Error
values. A dataflow error dispatch first checks if it may call a method on
Error
type.
[!WARNING] The actionables for this section are:
- Specify the semantics of Enso's broken values.
[!WARNING] TODO
- Values in Enso may have warnings attached
There is a special dynamic dispatch for values
with warnings. Before we pass the dispatch to the underlying value, we check if
warning has a method 'overridden' - this is used for remove_warnings
, etc.