In the current package I'm working on for a project, I have about 13 different user exceptions. Is it a good idea to put them in your own subpackage under a package that has all the classes that will use these exceptions?
For instance:
com.company.project.core
contains a bunch of classes that may throw some custom exceptions, which are then placed inside
com.company.project.core.exception
The only drawback that I see now is that I have a little import left for classes using exceptions.
source
share