4 ms·
I’ve been using the same structure for years :) But I prefer to replace ‘raise NotImplementedError’ with ´raise “Not Implemeneted”’ because that exception has
by viralpraxis 3y ago
I’ve been using the same structure for years :)
But I prefer to replace ‘raise NotImplementedError’ with ´raise “Not Implemeneted”’ because that exception has different semantics (method unavailability on the current platform)
- prognostikos 3y agoI also avoid `NotImplementedError` as it inherits from `Error` instead of `StandardError`. This can bring down services like job queue processors that rescue `StandardError`.