Exception: PacketGen::BindingError
- Defined in:
- lib/packetgen.rb
Overview
No known binding
Instance Attribute Summary collapse
- #hdr ⇒ Headerable readonly
- #prev_hdr ⇒ Headerable readonly
Instance Method Summary collapse
-
#initialize(prev_hdr, hdr) ⇒ BindingError
constructor
A new instance of BindingError.
- #message ⇒ Object
Constructor Details
#initialize(prev_hdr, hdr) ⇒ BindingError
Returns a new instance of BindingError.
35 36 37 38 39 |
# File 'lib/packetgen.rb', line 35 def initialize(prev_hdr, hdr) super() @prev_hdr = prev_hdr @hdr = hdr end |
Instance Attribute Details
#prev_hdr ⇒ Headerable (readonly)
31 32 33 |
# File 'lib/packetgen.rb', line 31 def prev_hdr @prev_hdr end |
Instance Method Details
#message ⇒ Object
41 42 43 44 45 46 |
# File 'lib/packetgen.rb', line 41 def "#{prev_hdr.class} knowns no layer association with #{hdr.protocol_name}. " \ "Try #{prev_hdr.class}.bind_layer(#{hdr.class}, " \ "#{prev_hdr.method_name}_proto_field: " \ "<value_for_#{hdr.method_name}>)" end |