Exception: NFS::SUNRPC::RpcMismatch

Inherits:
RequestDenied show all
Defined in:
lib/nfs/sunrpc.rb

Instance Method Summary collapse

Constructor Details

#initialize(low, high, xid) ⇒ RpcMismatch

RPC mismatch takes the xid since, it won’t actually have one passed to its encode method.



206
207
208
# File 'lib/nfs/sunrpc.rb', line 206

def initialize(low, high, xid)
  @low, @high, @xid = low, high, xid
end

Instance Method Details

#encode(xid) ⇒ Object



210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/nfs/sunrpc.rb', line 210

def encode(xid)
  RpcMsg.encode({
    xid: @xid,
    body: {
      _discriminant: :REPLY,
      rbody: {
        _discriminant: :MSG_DENIED,
        rreply: rreply
      }
    }
  })
end