best practice question, not specifically related to the dry gems but input from regulars here would be appreciated. say you have a class that raises specific domain errors, related to that class. Do you:
- Define the custom error classes inside the domain class and access them like
- Define the custome error classes in the same file as the domain class but outside of it, so client code can directly access
- Something else?