Class: Axn::ContractViolation::ReservedAttributeError

Inherits:
ContractViolation
  • Object
show all
Defined in:
lib/axn/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ReservedAttributeError

Returns a new instance of ReservedAttributeError.



173
174
175
176
# File 'lib/axn/exceptions.rb', line 173

def initialize(name)
  @name = name
  super()
end

Instance Method Details

#messageObject



178
# File 'lib/axn/exceptions.rb', line 178

def message = "Cannot call expects or exposes with reserved field name: #{@name}"