Exception: Ogc::Exceptions::RequestFailedException

Inherits:
OgcException
  • Object
show all
Defined in:
lib/ogc/exceptions/request_failed_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_error) ⇒ RequestFailedException

Returns a new instance of RequestFailedException.



6
7
8
9
# File 'lib/ogc/exceptions/request_failed_exception.rb', line 6

def initialize(http_error)
  super(http_error.message)
  @code = http_error.code
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/ogc/exceptions/request_failed_exception.rb', line 4

def code
  @code
end