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

[Suggestion] Need Generic Fail<T>(T object) method too #181

Open
bislerium opened this issue Apr 6, 2023 · 1 comment
Open

[Suggestion] Need Generic Fail<T>(T object) method too #181

bislerium opened this issue Apr 6, 2023 · 1 comment

Comments

@bislerium
Copy link

It's hard to always implement IError and being bounded to the IError contract standard. With the generic fail method, developer can set their own implementation of errors.

@altmann
Copy link
Owner

altmann commented Apr 7, 2023

You can also pass a string as error message which will be converted automatically to an Error object internally. Which class would you want to use for your Error?

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

No branches or pull requests

2 participants