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


850
851
852
# File 'lib/rex/proto/smb/exceptions.rb', line 850

def error_code
  @error_code
end

#error_reasonObject

Returns the value of attribute error_reason


850
851
852
# File 'lib/rex/proto/smb/exceptions.rb', line 850

def error_reason
  @error_reason
end

Instance Method Details

#to_sObject


851
852
853
# File 'lib/rex/proto/smb/exceptions.rb', line 851

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