Sha256: 1f8a78caecff5b0a410d0734e6d3d81ef61eaace87f10c762402b14c4cce3234
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
module Stomper module Frames # Encapsulates an "ERROR" server side frame for the Stomp Protocol. # # See the {Stomp Protocol Specification}[http://stomp.codehaus.org/Protocol] # for more details. class Error < Stomper::Frames::ServerFrame # This class is a factory for all incoming ERROR frames. factory_for :error # Creates a new Error frame with the supplied +headers+ and +body+ def initialize(headers, body) super('ERROR', 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], frame.headers['message'], or frame.headers.message def message @headers.message end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stomper-0.4 | lib/stomper/frames/error.rb |
stomper-0.3.2 | lib/stomper/frames/error.rb |
stomper-0.3.1 | lib/stomper/frames/error.rb |
stomper-0.3.0 | lib/stomper/frames/error.rb |