Exception: Dry::Mutations::Errors::AnonymousTypeDetected
- Inherits:
-
StandardError
- Object
- StandardError
- Dry::Mutations::Errors::AnonymousTypeDetected
- Defined in:
- lib/dry/mutations/errors.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, cause = nil) ⇒ AnonymousTypeDetected
constructor
A new instance of AnonymousTypeDetected.
Constructor Details
#initialize(type, cause = nil) ⇒ AnonymousTypeDetected
Returns a new instance of AnonymousTypeDetected.
6 7 8 9 |
# File 'lib/dry/mutations/errors.rb', line 6 def initialize type, cause = nil @type = type @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
5 6 7 |
# File 'lib/dry/mutations/errors.rb', line 5 def cause @cause end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/dry/mutations/errors.rb', line 5 def type @type end |