File: common.rb

package info (click to toggle)
ruby-pcaprub 0.13.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: ansic: 846; ruby: 308; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

module PCAPRUB
  # The base exception for JSON errors.
  class PCAPRUBError < StandardError; end

  # This exception is raised, if a Device Binding error occurs.
  class BindingError < PCAPRUBError; end

  # This exception is raised, if the BPF Filter raises a fault
  class BPFError < PCAPRUBError; end
  
  # This exception is raised, if the libpcap Dumper raises a fault
  # deep.
  class DumperError < PCAPRUBError; end

  # Raised if unable to set underlying capture link type
  class LinkTypeError < PCAPRUBError; end

end