Exception: Rasti::Types::MultiCastError

Inherits:
CompoundError show all
Defined in:
lib/rasti/types/errors.rb

Instance Attribute Summary collapse

Attributes inherited from CompoundError

#errors

Instance Method Summary collapse

Constructor Details

#initialize(type, value, errors) ⇒ MultiCastError

Returns a new instance of MultiCastError.



51
52
53
54
55
# File 'lib/rasti/types/errors.rb', line 51

def initialize(type, value, errors)
  @type = type
  @value = value
  super errors
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



49
50
51
# File 'lib/rasti/types/errors.rb', line 49

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



49
50
51
# File 'lib/rasti/types/errors.rb', line 49

def value
  @value
end