AbsBox icon indicating copy to clipboard operation
AbsBox copied to clipboard

Add Exception message

Open yellowbean opened this issue 2 years ago • 2 comments

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 avatar Feb 19 '24 07:02 yellowbean

requires : https://github.com/yellowbean/Hastructure/issues/159

yellowbean avatar Apr 23 '24 07:04 yellowbean

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

yellowbean avatar Apr 27 '24 06:04 yellowbean

Now expose error message via (Either Left Right) a5c6f52

yellowbean avatar Nov 25 '24 11:11 yellowbean