Exception: NFS::SUNRPC::RequestDenied

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

Overview

Abstract base of “rejected” errors

Direct Known Subclasses

AuthenticationError, RpcMismatch

Instance Method Summary collapse

Instance Method Details

#encode(xid) ⇒ Object



189
190
191
192
193
194
195
196
197
198
199
200
# File 'lib/nfs/sunrpc.rb', line 189

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