Exception: Ogc::Exceptions::RequestFailedException
- Inherits:
-
OgcException
- Object
- StandardError
- OgcException
- Ogc::Exceptions::RequestFailedException
- Defined in:
- lib/ogc/exceptions/request_failed_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(http_error) ⇒ RequestFailedException
constructor
A new instance of RequestFailedException.
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.) @code = http_error.code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/ogc/exceptions/request_failed_exception.rb', line 4 def code @code end |