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.
Constructor Details
#initialize(message, status = nil, headers = nil) ⇒ ServiceError
Returns a new instance of ServiceError.
97 98 99 100 101 |
# File 'lib/blix/rest.rb', line 97 def initialize(, status = nil, headers = nil) super( || "") @status = status || 406 @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
95 96 97 |
# File 'lib/blix/rest.rb', line 95 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
94 95 96 |
# File 'lib/blix/rest.rb', line 94 def status @status end |