class Rex::Proto::DCERPC::Exceptions::Error

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/rex/proto/dcerpc/exceptions.rb, line 106
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/dcerpc/exceptions.rb, line 111
def get_error(error)
  string = ''
  if @@errors[error]
    string = @@errors[error]
  else
    string = sprintf('0x%.8x',error)
  end
end