chiselstrike icon indicating copy to clipboard operation
chiselstrike copied to clipboard

Chiselstrike Errors should be more descriptive and user can throw Chisel errors

Open BearLemma opened this issue 3 years ago • 2 comments

Our endpoints currently don't provide a good way to handle errors.

  1. We don't include any numerical codes in the errors and don't propagate them nicely to the response. In case of an error, the response could automatically include body: {message: failed to locate user of id blabla, code: 7}
  2. We should expose ChiselError classes so that users don't have to write their boilerplate code to get nice error handling.

@luisfvieirasilva @ricardodalarme @honzasp did I get it right?

BearLemma avatar Oct 17 '22 12:10 BearLemma

Btw it's partially related to https://github.com/chiselstrike/chiselstrike/issues/1800

BearLemma avatar Oct 17 '22 12:10 BearLemma

I'll work on that ASAP

MarinPostma avatar Oct 26 '22 14:10 MarinPostma