aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/closed_error.rb
blob: 0a4db47f4b87bb744340f31633cfeb93ada394da (plain) (blame)
1
2
3
4
5
6
7
module ActionDispatch
  class ClosedError < StandardError #:nodoc:
    def initialize(kind)
      super "Cannot modify #{kind} because it was closed. This means it was already streamed back to the client or converted to HTTP headers."
    end
  end
end