I do not like the ```if isinstance```, especially in this case where it is expected that this method will be called from ```try-catch``` statements where we already know the type of the ```error```. But I think that adding a new method for each exception type is even worse.