Sha256: 4fe3ab279e2df9dafcb9bb40c6e26e856ee8f8183f62af4f95fd2f82280e9e43

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

# encoding: UTF-8

module JobDispatch

  # This is a simple class for making synchronous calls to the Job Queue dispatcher.
  class Client

    # When a proxy result is a failure, this exception is a class that will encapsulate the result.
    class ProxyError < StandardError
      attr :response

      def initialize(message, response=nil)
        @response = response
        super(message)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
job_dispatch-0.2.0 lib/job_dispatch/client/proxy_error.rb
job_dispatch-0.1.0 lib/job_dispatch/client/proxy_error.rb
job_dispatch-0.0.2 lib/job_dispatch/client/proxy_error.rb
job_dispatch-0.0.1 lib/job_dispatch/client/proxy_error.rb