Any best practices on when to choose which way to declare errors?
There seem to be multiple ways of declaring errors, such as:
or
Are there any relevant differences between the two approaches?
W.r.t. to the latter one as it's quite verbose one could use the snippet:
or
Are there any relevant differences between the two approaches?
W.r.t. to the latter one as it's quite verbose one could use the snippet:
