Hacker News new | ask | show | jobs
by viralpraxis 934 days 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)

1 comments

I also avoid `NotImplementedError` as it inherits from `Error` instead of `StandardError`. This can bring down services like job queue processors that rescue `StandardError`.