Exception: Blix::Rest::ServiceError
- Inherits:
-
StandardError
- Object
- StandardError
- Blix::Rest::ServiceError
- Defined in:
- lib/blix/rest.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status = nil, headers = nil) ⇒ ServiceError
constructor
A new instance of ServiceError.
- #to_i ⇒ Object
Constructor Details
#initialize(message, status = nil, headers = nil) ⇒ ServiceError
Returns a new instance of ServiceError.
101 102 103 104 105 |
# File 'lib/blix/rest.rb', line 101 def initialize(, status = nil, headers = nil) super( || "") @status = (status || 406).to_i @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
99 100 101 |
# File 'lib/blix/rest.rb', line 99 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
98 99 100 |
# File 'lib/blix/rest.rb', line 98 def status @status end |
Instance Method Details
#to_i ⇒ Object
107 108 109 |
# File 'lib/blix/rest.rb', line 107 def to_i @status end |