Exception: Dry::Mutations::Errors::AnonymousTypeDetected

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dry/mutations/errors.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#causeObject (readonly)

Returns the value of attribute cause.



5
6
7
# File 'lib/dry/mutations/errors.rb', line 5

def cause
  @cause
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/dry/mutations/errors.rb', line 5

def type
  @type
end