Exception: OracleCloud::Exception::HTTPError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/oraclecloud/exceptions.rb

Direct Known Subclasses

HTTPNotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ HTTPError

Returns a new instance of HTTPError.



25
26
27
28
29
30
31
# File 'lib/oraclecloud/exceptions.rb', line 25

def initialize(opts = {})
  @code = opts[:code]
  @body = opts[:body]
  @path = opts[:path]
  @klass = opts[:klass]
  @error = opts[:error]
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



24
25
26
# File 'lib/oraclecloud/exceptions.rb', line 24

def body
  @body
end

#codeObject

Returns the value of attribute code.



24
25
26
# File 'lib/oraclecloud/exceptions.rb', line 24

def code
  @code
end

#errorObject

Returns the value of attribute error.



24
25
26
# File 'lib/oraclecloud/exceptions.rb', line 24

def error
  @error
end

#klassObject

Returns the value of attribute klass.



24
25
26
# File 'lib/oraclecloud/exceptions.rb', line 24

def klass
  @klass
end

#pathObject

Returns the value of attribute path.



24
25
26
# File 'lib/oraclecloud/exceptions.rb', line 24

def path
  @path
end