Sha256: 3098e4d10ff8be586cb78a42e25df196ad0096bd0a1816eabf5f49a8f8eefa7b

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

class Skein::RPC
  class Exception < ::RuntimeError
    attr_accessor :request

    def to_error
      Skein::RPC::Error.new(
        error: '[%s] %s' % [ self.class, self.to_s ],
        id: self.request ? self.request.id : nil
      )
    end
  end

  class InvalidPayload < Exception
  end

  class InvalidMethod < Exception
  end
end

require_relative './rpc/base'
require_relative './rpc/error'
require_relative './rpc/request'
require_relative './rpc/response'
require_relative './rpc/notification'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
skein-0.3.7 lib/skein/rpc.rb
skein-0.3.6 lib/skein/rpc.rb
skein-0.3.5 lib/skein/rpc.rb
skein-0.3.2 lib/skein/rpc.rb
skein-0.3.1 lib/skein/rpc.rb
skein-0.3.0 lib/skein/rpc.rb