Strona głównaSztuka programowania

The topic of custom exceptions is surprisingly controversial. Some argue that exceptions shouldn't be used for anything related to "business", while others (me included) say that exceptions like InsufficientFunds are fine - I even wrote a whole chapter about using custom exceptions to simplify controllers in my Rails Refactoring book. I've read an interesting blog post today about custom exceptions (here - unfortunately it's in Polish), where the author advocates for using "business exceptions". ...

[EN] Andrzej on Software: Custom exceptions or domain events?

Sztuka programowania 3808 dni, 21 godzin, 16 minut temu psz750 147 pokaż kod licznika zwiń