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

Add Exception message #53

Open
yellowbean opened this issue Feb 19, 2024 · 2 comments
Open

Add Exception message #53

yellowbean opened this issue Feb 19, 2024 · 2 comments

Comments

@yellowbean
Copy link
Owner

yellowbean commented Feb 19, 2024

Current

There is only one RuntimeError in the package

The package just throw everything as RuntimeError ,expectially if the error was originated from Hastructure , which is less human friendly to Non-Haskeller .

Propose solution

  • Connection Error

  • Version Error

  • Engine Error

  • Invalid Request Message Error for ( Deal / Assumption / Pool / Asset )

  • Building type not being matched

    • The "_" clause need to be raised if match fails
@yellowbean
Copy link
Owner Author

requires : yellowbean/Hastructure#159

@yellowbean
Copy link
Owner Author

yellowbean commented Apr 27, 2024

The problem is so far:

Hastructure can throw error , but Servant failed to catch such error , so HTTP response is interruptted, absbox can not get exception message from Hastructure . That's why there is a lot of "ngix" error from absbox.org

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

1 participant