Sha256: 1b9e0057c45c5d0f3e2691ee2d88e38dd3d63c7a730e363bd6e29df89a56661d

Contents?: true

Size: 386 Bytes

Versions: 5

Compression:

Stored size: 386 Bytes

Contents

module OpenStax
  module Exchange

    class ClientError < StandardError
      def initialize(msg, original=$!)
        super(msg)
        @original = original
        set_backtrace(original.backtrace)
      end

      def inspect
        [super, @original.inspect].join(" ")
      end

      def message
        [super, "(#{@original.message})"].join(" ")
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openstax_exchange-0.2.1 lib/openstax/exchange/exceptions.rb
openstax_exchange-0.2.0 lib/openstax/exchange/exceptions.rb
openstax_exchange-0.1.0 lib/openstax/exchange/exceptions.rb
openstax_exchange-0.0.2 lib/openstax/exchange/exceptions.rb
openstax_exchange-0.0.1 lib/openstax/exchange/exceptions.rb