• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

payrollhero / dispatch-rider / #3015

02 Sep 2022 11:22PM UTC coverage: 0.409% (-84.7%) from 85.154%
#3015

push

web-flow
Layout/SpaceInsideStringInterpolation-20220901233630 (#89)

* :police_car: regenerate rubocop todo

* :police_car: Layout/SpaceInsideStringInterpolation

* :police_car: regenerate rubocop todo

Co-authored-by: Rubocop Challenger <rubocop@payrollhero.com>

0 of 1 new or added line in 1 file covered. (0.0%)

1529 existing lines in 63 files now uncovered.

7 of 1711 relevant lines covered (0.41%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/dispatch-rider/errors.rb
1
# This file contains all the error classes for this gem.
UNCOV
2
module DispatchRider
×
3
  # The base error class of the gem
UNCOV
4
  class DispatchRiderError < StandardError
×
UNCOV
5
  end
×
6

7
  # The error class for objects not being found
UNCOV
8
  class NotFound < DispatchRiderError
×
UNCOV
9
    def initialize(name)
×
UNCOV
10
      super("#{name.to_s} could not be found")
×
UNCOV
11
    end
×
UNCOV
12
  end
×
13

14
  # The error class for keys not registered in a registrar
UNCOV
15
  class NotRegistered < DispatchRiderError
×
UNCOV
16
    def initialize(name)
×
UNCOV
17
      super("#{name.to_s} has not been registered")
×
UNCOV
18
    end
×
UNCOV
19
  end
×
20

21
  # This error is raised when a queue service depends on an external library, but that is not present
UNCOV
22
  class AdapterNotFoundError < DispatchRiderError
×
UNCOV
23
    def initialize(lib_name, gem_name)
×
24
      super("Constant #{lib_name} wasn't found. Please install the #{gem_name} gem")
×
UNCOV
25
    end
×
UNCOV
26
  end
×
27

28
  # This error is raised when validation fails on an object
UNCOV
29
  class RecordInvalid < DispatchRiderError
×
UNCOV
30
    def initialize(object, error_messages)
×
UNCOV
31
      super("#{object.class.name} is not valid because of the following errors : #{error_messages.to_sentence}")
×
UNCOV
32
    end
×
UNCOV
33
  end
×
UNCOV
34
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc