Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove kustom exceptions #23

Merged
merged 2 commits into from
Apr 19, 2022
Merged

Remove kustom exceptions #23

merged 2 commits into from
Apr 19, 2022

Conversation

glureau
Copy link
Collaborator

@glureau glureau commented Apr 19, 2022

A response to #20

Annotating a class with @KustomExport now requires the class to NOT expose types that are an instance of Exception (or its subclasses). If you do it, the compiler will report an error with the location of the wrong type and ask you to replace it with Throwable. Throwable are properly mapped to Error by KotlinJS (other subclasses like Exception are not mapped and provides a bad TS output).

@glureau glureau added the enhancement New feature or request label Apr 19, 2022
@glureau glureau added this to the 0.5.0 milestone Apr 19, 2022
@glureau glureau self-assigned this Apr 19, 2022
@glureau glureau merged commit 16e5cbe into master Apr 19, 2022
@glureau glureau deleted the remove_kustom_exceptions branch April 19, 2022 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant