Sha256: 1187ae4511885b0d181479ff8a1279509131c82f04fc04a7ab692ce2afa4e1d8

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 KB

Contents

module FeduxOrg
  module Stdlib
    module Models
      module Exceptions
        #internal error
        class InternalError < Exception; end

        #raised if one tries to delete an instance which
        #does not exist
        class InstanceNotFound < InternalError; end

        #raised if one tries to use a keyword whose use
        #is restricted
        class UnauthorizedUseOfKeyword < InternalError; end

        #raised if one uses invalid search criteria
        class InvalidSearchCriteria < InternalError; end

        #raised if the code which defines an import filter
        #is malformed
        class MethodNeedsToBeImplemented < InternalError; end

        #raised if one tries to use an unimplemented exception
        class ExceptionNeedsToBeImplemented < InternalError; end

        #raised if an file system error occured
        class FilesystemError < Exception ; end

        #raise if a directory does not exist in filesystem
        class DirectoryDoesNotExist < FilesystemError; end

        #raise if a file does not exist in filesystem
        class FileDoesNotExist < FilesystemError; end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.0.4 lib/fedux_org/stdlib/models/exceptions.rb
fedux_org-stdlib-0.0.3 lib/fedux_org/stdlib/models/exceptions.rb