Exception: RubySMB::Dcerpc::Error::FaultError

Inherits:
InvalidPacket show all
Defined in:
lib/ruby_smb/dcerpc/error.rb

Overview

Raised when a fault response is received

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, status:) ⇒ FaultError

Returns a new instance of FaultError.



19
20
21
22
# File 'lib/ruby_smb/dcerpc/error.rb', line 19

def initialize(message=nil, status:)
  @status_code = status
  super(message)
end

Instance Attribute Details

#status_codeObject (readonly)

Returns the value of attribute status_code.



18
19
20
# File 'lib/ruby_smb/dcerpc/error.rb', line 18

def status_code
  @status_code
end

Instance Method Details

#status_nameObject



24
25
26
# File 'lib/ruby_smb/dcerpc/error.rb', line 24

def status_name
  RubySMB::Dcerpc::Fault::Status.name(@status_code)
end