class ActiveSupport::DeprecationException

You would set :raise, as a behavior to raise errors and proactively report exceptions from deprecations.
Raised when ActiveSupport::Deprecation::Behavior#behavior is set with :raise.