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 ⇒ String
Constructor Details
#initialize(prev_hdr, hdr) ⇒ BindingError
Returns a new instance of BindingError.
39 40 41 42 43 |
# File 'lib/packetgen.rb', line 39 def initialize(prev_hdr, hdr) super() @prev_hdr = prev_hdr @hdr = hdr end |
Instance Attribute Details
#prev_hdr ⇒ Headerable (readonly)
33 34 35 |
# File 'lib/packetgen.rb', line 33 def prev_hdr @prev_hdr end |
Instance Method Details
#message ⇒ String
46 47 48 49 50 51 |
# File 'lib/packetgen.rb', line 46 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 |