File: exceptions.rb

package info (click to toggle)
ruby-daemons 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 388 kB
  • sloc: ruby: 2,133; makefile: 7
file content (26 lines) | stat: -rw-r--r-- 376 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
21
22
23
24
25
26
module Daemons
  class Exception < RuntimeError
  end

  class RuntimeException < Exception
  end

  class CmdException < Exception
  end

  class Error < Exception
  end

  class SystemError < Error
    attr_reader :system_error

    def initialize(msg, system_error)
      super(msg)

      @system_error = system_error
    end
  end

  class TimeoutError < Error
  end
end