Exception: Errors::InputError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/address-service/errors/input_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#objectObject (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_sObject



10
11
12
# File 'lib/address-service/errors/input_error.rb', line 10

def to_s
  "An input error has occurred: #{@object}"
end