All Questions
2 questions
0
votes
2
answers
421
views
Throwing custom exceptions in library: do I throw concrete ones or their superclass?
I am designing a library that abstracts a typical CRUD http service named FooService.
In this library I am throwing different exceptions like FooServiceClientException for network related errors or ...
1
vote
3
answers
678
views
Should a file reader library API throw exceptions?
I am developing a (Java) library providing an API to read a file in a specific format into an object. The format is basically a map, and specifies valid values for some of the keys, and valid types ...