lib/dio/errors.rb in dio-0.0.2 vs lib/dio/errors.rb in dio-0.0.3

- old
+ new

@@ -9,7 +9,19 @@ # Error message MSG = 'Object provided no method of deconstruction (to_a, to_ary, map, Enumerable)' def initialize(msg=MSG) = super end + + # Error raised when no deconstruction method is available on an object being + # treated like an Array deconstruction. + # + # @author [baweaver] + # @since 0.0.1 + class UnknownAttributesProvided < ArgumentError + # Error message + MSG = 'Unknown attribute arguments provided to method' + + def initialize(attributes) = super("#{MSG}: #{attributes.join(', ')}") + end end end