Sha256: 1ca0709f539349a73eb75a99d5a1af0f238b163aa8b75f683b58e24eed9256ef
Contents?: true
Size: 839 Bytes
Versions: 4
Compression:
Stored size: 839 Bytes
Contents
# frozen_string_literal: true # rubocop:disable Style/Documentation 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 # rubocop:enable Style/Documentation
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
coltrane-1.0.22 | lib/cli/errors.rb |
coltrane-1.0.21 | lib/cli/errors.rb |
coltrane-1.0.20 | lib/cli/errors.rb |
coltrane-1.0.2 | lib/cli/errors.rb |