Exception: GovDelivery::TMS::Request::Error
- Inherits:
-
StandardError
- Object
- StandardError
- GovDelivery::TMS::Request::Error
- Defined in:
- lib/govdelivery/tms/errors.rb
Overview
The generic TMS error class
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code) ⇒ Error
Returns a new instance of Error.
7 8 9 10 |
# File 'lib/govdelivery/tms/errors.rb', line 7 def initialize(code) super("HTTP Error: #{code}") @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/govdelivery/tms/errors.rb', line 5 def code @code end |