class Hashie::Clash::ChainError

Raised when bang chaining encounters a value that is not a hash.

@example Reject chaining into a scalar

error = begin
  Hashie::Clash.new(limit: 10).limit!
rescue Hashie::Clash::ChainError => exception
  exception
end
error.class # => Hashie::Clash::ChainError
error.message # => 'tried to chain into a non-hash key'