Exception: Rex::Proto::SMB::Exceptions::LoginError

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

Instance Attribute Summary collapse

Attributes inherited from SimpleClientError

#fatal, #source

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 Attribute Details

#error_codeObject

Returns the value of attribute error_code.



858
859
860
# File 'lib/rex/proto/smb/exceptions.rb', line 858

def error_code
  @error_code
end

#error_reasonObject

Returns the value of attribute error_reason.



858
859
860
# File 'lib/rex/proto/smb/exceptions.rb', line 858

def error_reason
  @error_reason
end

Instance Method Details

#to_sObject



859
860
861
# File 'lib/rex/proto/smb/exceptions.rb', line 859

def to_s
  "Login Failed: " + self.source.to_s
end