mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-05 17:46:21 +00:00
7ee821e9c9
The original runtime error reporting PR[^1] added a "cc.exception" module, which allowed coroutine managers (such as parallel) to throw rich errors, detailing the original context where the error was thrown. Unfortunately, the change to parallel broke some programs (>_>, don't do string pattern matching on your errors!), and so had to be reverted, along with the cc.exception module. As a minimal replacement for this, we add support for user-thrown exceptions within our internal code. If an error object "looks" like an exception ("exception" __name, and a message and thread field), then we use that as our error information instead. This is currently undocumented (at least in user-facing documentation), mostly because I couldn't figure out where to put it - the interface should remain stable. [^1]: https://github.com/cc-tweaked/CC-Tweaked/pull/1320 |
||
---|---|---|
.. | ||
common | ||
common-api | ||
core | ||
core-api | ||
fabric | ||
fabric-api | ||
forge | ||
forge-api | ||
lints | ||
standalone | ||
web | ||
ARCHITECTURE.md |