class ActiveSupport::DeprecationException

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