Sha256: 4ef8bbd6a37e5f3bc3acc583f82d81fa007bc17239801cbeb1f713105a7d49ab

Contents?: true

Size: 353 Bytes

Versions: 11

Compression:

Stored size: 353 Bytes

Contents

require 'timeout'

module Delayed
  class WorkerTimeout < RuntimeError
    def message
      seconds = Delayed::Worker.max_run_time.to_i
      "#{super} (Delayed::Worker.max_run_time is only #{seconds} second#{seconds == 1 ? '' : 's'})"
    end
  end

  class FatalBackendError < RuntimeError; end

  class DeserializationError < StandardError; end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
delayed-0.5.5 lib/delayed/exceptions.rb
delayed-0.5.4 lib/delayed/exceptions.rb
delayed-0.5.3 lib/delayed/exceptions.rb
delayed-0.5.2 lib/delayed/exceptions.rb
delayed-0.5.1 lib/delayed/exceptions.rb
delayed-0.5.0 lib/delayed/exceptions.rb
delayed-0.4.0 lib/delayed/exceptions.rb
delayed-0.3.0 lib/delayed/exceptions.rb
delayed-0.2.0 lib/delayed/exceptions.rb
delayed-0.1.1 lib/delayed/exceptions.rb
delayed-0.1.0 lib/delayed/exceptions.rb