Class: Twib::Switch::Debug::Event::Exception

Inherits:
Event
  • Object
show all
Defined in:
lib/twib/switch/debug.rb

Constant Summary collapse

TYPE =
4

Instance Attribute Summary collapse

Attributes inherited from Event

#flags, #thread_id

Instance Method Summary collapse

Methods inherited from Event

#initialize, unpack

Constructor Details

This class inherits a constructor from Twib::Switch::Debug::Event::Event

Instance Attribute Details

#fault_registerObject (readonly)

Returns the value of attribute fault_register.



84
85
86
# File 'lib/twib/switch/debug.rb', line 84

def fault_register
  @fault_register
end

#specificObject (readonly)

Returns the value of attribute specific.



84
85
86
# File 'lib/twib/switch/debug.rb', line 84

def specific
  @specific
end

#typeObject (readonly)

Returns the value of attribute type.



84
85
86
# File 'lib/twib/switch/debug.rb', line 84

def type
  @type
end

Instance Method Details

#event_typeObject



81
82
83
# File 'lib/twib/switch/debug.rb', line 81

def event_type
  :exception
end

#unpack_specific(pack) ⇒ Object



78
79
80
# File 'lib/twib/switch/debug.rb', line 78

def unpack_specific(pack)
  @type, @fault_register, @specific = pack.unpack("L<Q<a*")
end