Sha256: d543663f6038889f520708fd71992cedf6f9f70bff039c958771e5387c43d1f2

Contents?: true

Size: 696 Bytes

Versions: 22

Compression:

Stored size: 696 Bytes

Contents

module Ox

  # Base error class for Ox errors.
  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 that is raised as a result of invalid XML syntax.
  class SyntaxError < Error
  end

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

end # Ox

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ox-2.14.14 lib/ox/error.rb
ox-2.14.13 lib/ox/error.rb
ox-2.14.12 lib/ox/error.rb
ox-2.14.11 lib/ox/error.rb
ox-2.14.10 lib/ox/error.rb
ox-2.14.9 lib/ox/error.rb
ox-2.14.8 lib/ox/error.rb
ox-2.14.7 lib/ox/error.rb
ox-2.14.6 lib/ox/error.rb
ox-2.14.5 lib/ox/error.rb
ox-2.14.4 lib/ox/error.rb
ox-2.14.3 lib/ox/error.rb
ox-2.14.2 lib/ox/error.rb
ox-2.14.1 lib/ox/error.rb
ox-2.14.0 lib/ox/error.rb
ox-2.13.4 lib/ox/error.rb
ox-2.13.3 lib/ox/error.rb
ox-2.13.2 lib/ox/error.rb
ox-2.13.1 lib/ox/error.rb
ox-2.12.1 lib/ox/error.rb