Sha256: 4b5f1d1c92ac0f9f3f95f998a18596d60e3c7019a22a52d9a7d8e39793b139da

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

module Stomper
  module Frames
    # Encapsulates an "ERROR" server side frame for the Stomp Protocol.
    class Error < Stomper::Frames::ServerFrame

      # Creates a new Error frame with the supplied +headers+ and +body+
      def initialize(headers, body)
        super(headers, body)
      end

      # Returns the message responsible for the generation of this Error frame,
      # if applicable.
      #
      # This is a convenience method for:
      # frame.headers[:message]
      def message
        @headers[:message]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stomper-1.0.0 lib/stomper/frames/error.rb