Sha256: 492cfef82635f325dbc2157e09a10dd187d898c685cb4c3495b417f35fe783f2
Contents?: true
Size: 621 Bytes
Versions: 4
Compression:
Stored size: 621 Bytes
Contents
module Guise class DefinitionNotFound < StandardError def initialize(name) @name = name end def message "no guises defined for #{@name.inspect}" end end class DuplicateDefinition < StandardError def initialize(name) @name = name end def message "guise definition for #{@name.inspect} already exists" end end class InvalidGuiseValue < ArgumentError def initialize(guise_value, klass) @guise_value = guise_value @klass = klass end def message "`#{guise_value}' is not a defined guise value for #{klass}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
guise-0.9.0 | lib/guise/errors.rb |
guise-0.8.0 | lib/guise/errors.rb |
guise-0.7.0 | lib/guise/errors.rb |
guise-0.6.1 | lib/guise/errors.rb |