Exception: UsdaFdc::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- UsdaFdc::ResponseError
- Defined in:
- lib/usda_fdc/helpers/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = '', code = nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(message = '', code = nil) ⇒ ResponseError
Returns a new instance of ResponseError.
10 11 12 13 |
# File 'lib/usda_fdc/helpers/errors.rb', line 10 def initialize( = '', code = nil) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
8 9 10 |
# File 'lib/usda_fdc/helpers/errors.rb', line 8 def code @code end |