Exception: RakeSlack::Exceptions::NoMatchingRule

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rake_slack/exceptions/no_matching_rule.rb

Instance Method Summary collapse

Constructor Details

#initialize(candidate) ⇒ NoMatchingRule

Returns a new instance of NoMatchingRule.



6
7
8
9
10
11
# File 'lib/rake_slack/exceptions/no_matching_rule.rb', line 6

def initialize(candidate)
  super(
    "No routing rule matches #{candidate.inspect}. Add a catch-all " \
    'rule (when: {}) to the end of routing_rules.'
  )
end