Exception: SockJS::HttpError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sockjs.rb

Direct Known Subclasses

InvalidJSON

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, message, &block) ⇒ HttpError

Returns a new instance of HttpError.



50
51
52
53
54
# File 'lib/sockjs.rb', line 50

def initialize(status, message, &block)
  @message = message
  @status = status
  raise "Block passed to HttpError" unless block.nil?
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



48
49
50
# File 'lib/sockjs.rb', line 48

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



48
49
50
# File 'lib/sockjs.rb', line 48

def status
  @status
end