Too general exceptions?

#1

I see that through Fastai’s code general Exceptions are raised. I believe this is done to use “Exception” as an element of flow control. However, capturing Exception is discouraged because it is too broad. (For example, that may make it difficult to find bugs in parts of the code that are not related to Fastai?)

Would it make sense to create a new class of exception, such as FastaiException to use in these cases?

0 Likes