Closed athossampayo closed 2 years ago
HI.
The problem is that the data returned is not always for the same book! Sometimes, the data belongs to another 'related' book. So in order to maintain data integrity, this exception must be raised.
@xlcnd that makes sense, but could the exception class receive the returned data as an attribute so the user can decide to capture it when needed to ignore? WDYT?
Regarding the use of
meta()
:There are times where a different ISBN is returned internally and
ISBNNotConsistentError
is raised, but is referent to the same book and the user might want to ignore the error and use the data found, but right now this is not possible, not even by capturing the exception.Maybe we should add the metadata on this exception class?
One ISBN example that I found on the wild were would be useful to use the data returned: