Exception: Rufus::Jig::HttpError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/rufus/jig/http.rb

Overview

Keeping track of the HTTP status code and of the error message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, message) ⇒ HttpError

Returns a new instance of HttpError.



47
48
49
50
51
# File 'lib/rufus/jig/http.rb', line 47

def initialize(status, message)

  @status = status
  super(message)
end

Instance Attribute Details

#status ⇒ Object (readonly)

Returns the value of attribute status.



45
46
47
# File 'lib/rufus/jig/http.rb', line 45

def status
  @status
end