Sha256: 8c14a794fb12b1b8120e8492f06afa833ad316e1ee2b16fb0d4901af51664e27

Contents?: true

Size: 651 Bytes

Versions: 3

Compression:

Stored size: 651 Bytes

Contents

module ResqueAdmin
  # Raised whenever we need a queue but none is provided.
  class NoQueueError < RuntimeError; end

  # Raised when trying to create a job without a class
  class NoClassError < RuntimeError; end

  # Raised when a worker was killed while processing a job.
  class DirtyExit < RuntimeError
    attr_reader :process_status

    def initialize(message=nil, process_status=nil)
      @process_status = process_status
      super message
    end
  end
  class PruneDeadWorkerDirtyExit < DirtyExit; end

  # Raised when child process is TERM'd so job can rescue this to do shutdown work.
  class TermException < SignalException; end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
resque_admin-1.0.5 lib/resque_admin/errors.rb
resque_admin-0.2.0 lib/resque_admin/errors.rb
resque_admin-2.4.4 lib/resque_admin/errors.rb