Exception: Rex::Proto::DCERPC::Exceptions::InvalidPacket

Inherits:
Error
  • Object
show all
Defined in:
lib/rex/proto/dcerpc/exceptions.rb

Instance Method Summary collapse

Methods inherited from Error

#get_error

Constructor Details

#initialize(message = nil) ⇒ InvalidPacket

Returns a new instance of InvalidPacket.



135
136
137
# File 'lib/rex/proto/dcerpc/exceptions.rb', line 135

def initialize(message = nil)
	@message = message
end

Instance Method Details

#to_sObject



139
140
141
142
143
144
# File 'lib/rex/proto/dcerpc/exceptions.rb', line 139

def to_s
	str = 'Invalid packet.'
	if (@message)
		str += " #{@message}"
	end
end