#
# bitclust/exception.rb
#
# Copyright (c) 2006-2007 Minero Aoki
#
# This program is free software.
# You can distribute/modify this program under the Ruby License.
#

module BitClust
  class Error                   < StandardError; end
  class RequestError            < Error; end
  class NotInTransaction        < Error; end
  class DocumentError           < Error; end
  class ScanError               < DocumentError; end
  class ParseError              < DocumentError; end
  class WrongInclude            < DocumentError; end
  class InvalidLink             < DocumentError; end
  class InvalidAncestor         < DocumentError; end
  class UserError               < Error; end
  class InvalidDatabase         < UserError; end
  class InvalidKey              < UserError; end
  class LibraryNotFound         < UserError; end
  class ClassNotFound           < UserError; end
  class MethodNotFound          < UserError; end
  class InvalidScheme           < UserError; end
  class FunctionNotFound        < UserError; end

  module WriterError; end
  class DocumentError
    include WriterError
  end
  class UserError
    include WriterError
  end
end
