Exception: Rex::Proto::SMB::Exceptions::ErrorCode

Inherits:
InvalidPacket show all
Defined in:
lib/rex/proto/smb/exceptions.rb

Instance Attribute Summary

Attributes inherited from InvalidPacket

#command, #error_code, #word_count

Instance Method Summary collapse

Methods inherited from Error

#get_error, #initialize

Constructor Details

This class inherits a constructor from Rex::Proto::SMB::Exceptions::Error

Instance Method Details

#to_sObject


808
809
810
811
812
# File 'lib/rex/proto/smb/exceptions.rb', line 808

def to_s
  'The server responded with error: ' +
  self.get_error(self.error_code) +
  " (Command=#{self.command} WordCount=#{self.word_count})"
end