Exception: TypeStruct::MultiTypeError
- Defined in:
- lib/type_struct/exceptions.rb
Constant Summary collapse
- THIS_LIB_REGEXP =
%r{lib/type_struct[./]}- PWD =
Pathname.new(Dir.pwd)
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ MultiTypeError
constructor
A new instance of MultiTypeError.
Constructor Details
#initialize(errors) ⇒ MultiTypeError
Returns a new instance of MultiTypeError.
8 9 10 11 |
# File 'lib/type_struct/exceptions.rb', line 8 def initialize(errors) @errors = errors super("\n#{build_message}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/type_struct/exceptions.rb', line 7 def errors @errors end |