Exception: OrientdbClient::OrientdbError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/orientdb_client/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, http_code = nil, response_body = nil) ⇒ OrientdbError

Returns a new instance of OrientdbError.



5
6
7
8
9
# File 'lib/orientdb_client/errors.rb', line 5

def initialize(message = nil, http_code = nil, response_body = nil)
  super(message)
  @http_code = http_code
  @response_body = response_body
end

Instance Attribute Details

#http_codeObject (readonly)

Returns the value of attribute http_code.



3
4
5
# File 'lib/orientdb_client/errors.rb', line 3

def http_code
  @http_code
end

#response_bodyObject (readonly)

Returns the value of attribute response_body.



3
4
5
# File 'lib/orientdb_client/errors.rb', line 3

def response_body
  @response_body
end