Exception: OData::ServiceError
- Inherits:
-
StandardError
- Object
- StandardError
- OData::ServiceError
- Defined in:
- lib/ruby_odata/exceptions.rb
Overview
Raised when the service returns an error
Instance Attribute Summary collapse
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
Instance Method Summary collapse
-
#initialize(code) ⇒ ServiceError
constructor
A new instance of ServiceError.
Constructor Details
#initialize(code) ⇒ ServiceError
Returns a new instance of ServiceError.
7 8 9 |
# File 'lib/ruby_odata/exceptions.rb', line 7 def initialize(code) @http_code = code end |
Instance Attribute Details
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
6 7 8 |
# File 'lib/ruby_odata/exceptions.rb', line 6 def http_code @http_code end |