Exception: Ecfr::Client::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Ecfr::Client::Error
- Defined in:
- lib/ecfr/client.rb
Direct Known Subclasses
BadRequest, Forbidden, InvalidRequest, RecordNotFound, ResponseError, RetryAfter, ServerError, Unauthorized, UnknownStatusCode
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record = nil, message = "") ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(record = nil, message = "") ⇒ Error
Returns a new instance of Error.
17 18 19 20 |
# File 'lib/ecfr/client.rb', line 17 def initialize(record = nil, = "") @record = record super() end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
15 16 17 |
# File 'lib/ecfr/client.rb', line 15 def record @record end |