I have different kinds of exceptions in a library which i am developing.
What do you recommend placing them in a single file or a file with each kind of exception?
Pls answer remembering that this is a library i am developing.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Java, all public classes, including exceptions, must get their own file.
In C#, it is OK to put exceptions along with other classes, particularly if the exception is only raised by the other class.