Sha256: 9184a92fb4cf354d256807a1a7b9fe1d65fb6e016cd7c8c02988a005994060bc
Contents?: true
Size: 726 Bytes
Versions: 3
Compression:
Stored size: 726 Bytes
Contents
module Coltrane module Cli class ColtraneCliError < StandardError def initialize(msg) super msg end end class WrongFlavorError < ColtraneCliError def initialize(msg=nil) super msg || 'Wrong flavor. Check possible flavors with `coltrane list flavors`.' end end class BadFindScales < ColtraneCliError def initialize(msg=nil) super msg || 'Provide --notes or --chords. Ex: `coltrane find-scale --notes C E G`.' end end class WrongRepresentationTypeError < ColtraneCliError def initialize(type) super "The provided representation type (#{type}) "\ "is not available at the moment." end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coltrane-1.0.11 | lib/cli/errors.rb |
coltrane-1.0.1 | lib/cli/errors.rb |
coltrane-1.0.0 | lib/cli/errors.rb |