GolosChain / golos

Socio-economic mediablockchain
https://developers.golos.io
Other
59 stars 36 forks source link

Introduce assert exceptions codes standardisation #218

Open jevgenika opened 6 years ago

jevgenika commented 6 years ago

Make the output of errors not in text form, but in the form of a numerical value. Each error should had its own type as http error codes

kotbegemot commented 6 years ago

@jevgenika In which places do you want to see http code?

nemothenoone commented 6 years ago

The solution is to refactor new exceptions definition system introduced in #177, and to make the what-message include the exception code. The exception code gets explicitly defined right in the exception definition.

jevgenika commented 6 years ago

https://github.com/GolosChain/tolstoy/issues/469