Sha256: 0deca64f1dfa27144efb2cd67a02d7624612e0566858f5647f781b8ab56d8726
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
module Dio module Errors # Error raised when no deconstruction method is available on an object being # treated like an Array deconstruction. # # @author [baweaver] # @since 0.0.1 class NoDeconstructionMethod < StandardError # 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dio-0.0.3 | lib/dio/errors.rb |