mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
Using the core `NotInmplementedError` is not desireable since its documentation includes: > Note that if `fork` raises a `NotImplementedError`, then > `respond_to?(:fork)` returns `false`. Since we are responding to the method but still raise an error, our usage of the exception does not fulfill its documentation. A custom error instead of a default `NoMethodError` is still desireable since it significantly helps with debugging. With a different Exception, we make it clear that a method is expected to be there and just wasn't implemented by a subclass as opposed to the caller just using an object wrong and calling entirely unexpected methods on it.