Sha256: 8f127ebf4da6bddf8a31562051639274733ed63feaf29f6a63baa518fc0486ea

Contents?: true

Size: 609 Bytes

Versions: 10

Compression:

Stored size: 609 Bytes

Contents

module Hoth
  class HothException < StandardError
    attr_reader :original
    def self.wrap(original)
      wrapped = new("#{original.class} says: #{original.message}")
      wrapped.set_backtrace original.backtrace
      wrapped.instance_variable_set :@original, original
      wrapped
    end
  end

  class TransportError < HothException; end
  class TransportException < HothException; end

  class EncodingError < HothException; end

  class EmptyServiceNameError < HothException; end
  class ServiceNotFoundException < HothException; end

  class RecursiveServiceCallException < HothException; end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hoth-0.4.2 lib/hoth/exceptions.rb
hoth-0.4.1 lib/hoth/exceptions.rb
hoth-0.4.0 lib/hoth/exceptions.rb
hoth-0.3.4 lib/hoth/exceptions.rb
hoth-0.3.3 lib/hoth/exceptions.rb
hoth-0.3.2.beta4 lib/hoth/exceptions.rb
hoth-0.3.2.beta3 lib/hoth/exceptions.rb
hoth-0.3.2.beta2 lib/hoth/exceptions.rb
hoth-0.3.2.beta1 lib/hoth/exceptions.rb
hoth-0.3.1 lib/hoth/exceptions.rb