File: error.rb

package info (click to toggle)
ruby-ox 2.1.1-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 540 kB
  • sloc: ansic: 7,178; ruby: 415; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

module Ox

  class Error < StandardError
  end # Error

  # An Exception that is raised as a result of a parse error while parsing a XML document.
  class ParseError < Error
  end # ParseError

  # An Exception that is raised as a result of an invalid argument.
  class ArgError < Error
  end # ArgError

  # An Exception raised if a path is not valid.
  class InvalidPath < Error
    def initialize(path)
      super("#{path.join('/')} is not a valid location.")
    end
  end # InvalidPath

end # Ox