Tag Info

New answers tagged


If you restrict exceptions to integer error codes, then you cannot attach extra data. When I index an array out of bounds, its nice if the error can tell me which index I used, the size of the array, and the stack trace. If you just tell me that I got an ArrayIndexError, that's pretty much useless. To me, your solution comes across as overthinking it. ...

Top 50 recent answers are included