Exception: Rex::Proto::DCERPC::Exceptions::InvalidPacket
- Defined in:
- lib/rex/proto/dcerpc/exceptions.rb
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ InvalidPacket
constructor
A new instance of InvalidPacket.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(message = nil) ⇒ InvalidPacket
Returns a new instance of InvalidPacket.
136 137 138 |
# File 'lib/rex/proto/dcerpc/exceptions.rb', line 136 def initialize( = nil) @message = end |
Instance Method Details
#to_s ⇒ Object
140 141 142 143 144 145 |
# File 'lib/rex/proto/dcerpc/exceptions.rb', line 140 def to_s str = 'Invalid packet.' if (@message) str += " #{@message}" end end |