class Rex::Proto::SMB::Exceptions::Error
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/rex/proto/smb/exceptions.rb, line 734 def initialize(*args) super(*args) end
Public Instance Methods
get_error(error)
click to toggle source
returns an error string if it exists, otherwise just the error code
# File lib/rex/proto/smb/exceptions.rb, line 739 def get_error(error) string = '' if error && @@errors[error] string = @@errors[error] elsif error string = sprintf('0x%.8x',error) else string = "Unknown error" end string end