Exception: SockJS::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- SockJS::HttpError
- Defined in:
- lib/sockjs.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message, &block) ⇒ HttpError
constructor
A new instance of HttpError.
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, , &block) @message = @status = status raise "Block passed to HttpError" unless block.nil? end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
48 49 50 |
# File 'lib/sockjs.rb', line 48 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
48 49 50 |
# File 'lib/sockjs.rb', line 48 def status @status end |