Class: Axn::ContractViolation::ReservedAttributeError
- Inherits:
-
ContractViolation
- Object
- ContractViolation
- Axn::ContractViolation::ReservedAttributeError
- Defined in:
- lib/axn/exceptions.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ ReservedAttributeError
constructor
A new instance of ReservedAttributeError.
- #message ⇒ Object
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
#message ⇒ Object
178 |
# File 'lib/axn/exceptions.rb', line 178 def = "Cannot call expects or exposes with reserved field name: #{@name}" |