Exception: OData::ServiceError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruby_odata/exceptions.rb

Overview

Raised when the service returns an error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code) ⇒ ServiceError



7
8
9
# File 'lib/ruby_odata/exceptions.rb', line 7

def initialize(code)
  @http_code = code
end

Instance Attribute Details

#http_codeObject (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