Exception: Errors::InputError
- Inherits:
-
StandardError
- Object
- StandardError
- Errors::InputError
- Defined in:
- lib/address-service/errors/input_error.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object) ⇒ InputError
constructor
A new instance of InputError.
- #to_s ⇒ Object
Constructor Details
#initialize(object) ⇒ InputError
Returns a new instance of InputError.
6 7 8 |
# File 'lib/address-service/errors/input_error.rb', line 6 def initialize(object) @object = object end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
4 5 6 |
# File 'lib/address-service/errors/input_error.rb', line 4 def object @object end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/address-service/errors/input_error.rb', line 10 def to_s "An input error has occurred: #{@object}" end |