Exception: NFS::SUNRPC::AcceptedError

Inherits:
Exception
  • Object
show all
Defined in:
lib/nfs/sunrpc.rb

Overview

Abstract base of errors where the message was “accepted”

Instance Method Summary collapse

Instance Method Details

#encode(xid) ⇒ Object



290
291
292
293
294
295
296
297
298
299
300
301
# File 'lib/nfs/sunrpc.rb', line 290

def encode(xid)
  RpcMsg.encode({
    xid: xid,
    body: {
      _discriminant: :REPLY,
      rbody: {
        _discriminant: :MSG_ACCEPTED,
        areply: areply
      }
    }
  })
end