lib/norikra/client.rb in norikra-client-0.0.4 vs lib/norikra/client.rb in norikra-client-0.0.5
- old
+ new
@@ -1,9 +1,14 @@
require "norikra/client/version"
require 'msgpack-rpc-over-http'
module Norikra
+ module RPC
+ class ClientError < MessagePack::RPCOverHTTP::RemoteError; end
+ class ServerError < MessagePack::RPCOverHTTP::RemoteError; end
+ end
+
class Client
RPC_DEFAULT_PORT = 26571
TIMEOUT_OPTIONS = [:connect_timeout, :send_timeout, :receive_timeout]
def initialize(host='localhost', port=RPC_DEFAULT_PORT, opts={})