Skip to content

Clean up public API of FusionException.#427

Merged
toddjonker merged 1 commit intoion-fusion:mainfrom
toddjonker:exn-public
Feb 3, 2026
Merged

Clean up public API of FusionException.#427
toddjonker merged 1 commit intoion-fusion:mainfrom
toddjonker:exn-public

Conversation

@toddjonker
Copy link
Member

This prepares for moving it into runtime.base. The critical part is the removal of displayMessage(Evaluator eval) which coupled this class to implementation details. Due to the preceding changes, all messages are prepared before constructing the exception, so we no longer need that method and can just pull the message from the Throwable.getMessage() field.

Notes

After this change, we can easily move FusionException into runtime.base.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This prepares for moving it into `runtime.base`. The critical part is the removal of `displayMessage(Evaluator eval)` which coupled this class to implementation details.  Due to the preceding changes, all messages are prepared before constructing the exception, so we no longer need that method and can just pull the message from the `Throwable.getMessage()` field.
@toddjonker toddjonker merged commit 2f87f9e into ion-fusion:main Feb 3, 2026
4 checks passed
@toddjonker toddjonker deleted the exn-public branch February 3, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants