Exception: DattsRight::Exceptions::AttributeExistsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/datts_right/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ AttributeExistsError

Returns a new instance of AttributeExistsError.



5
6
7
# File 'lib/datts_right/exceptions.rb', line 5

def initialize(reason)
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



4
5
6
# File 'lib/datts_right/exceptions.rb', line 4

def reason
  @reason
end