Sha256: 3a29ebd5051792d383ebb73e18b22492b39103029cca35da665273afc0471323

Contents?: true

Size: 267 Bytes

Versions: 13

Compression:

Stored size: 267 Bytes

Contents

class ExceptionRaiserWorker < BaseRequestWorker

  virtual_topic 'test_string'
  response :marshal => :string, :time_to_live => 5000

  def request(obj)
    raise "Raising dummy exception on #{obj}" if options[:raise]
    "We decided not to raise on #{obj}"
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
modern_times-0.3.12 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.11 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.10 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.9 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.8 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.7 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.6 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.5 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.4 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.3 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.2 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.1 examples/advanced_requestor/exception_raiser_worker.rb
modern_times-0.3.0 examples/advanced_requestor/exception_raiser_worker.rb