Sha256: d977a12b964041bfec6465fdc246e977f075414f67c02093221b2fb9901ab1d9

Contents?: true

Size: 1.16 KB

Versions: 5

Compression:

Stored size: 1.16 KB

Contents

# the main module
module TheArrayComparator
  # exceptions which are going to be raised under
  # certain conditions
  module Exceptions 
    # Used if one tries to add an unknown 
    # check type 
    class UnknownCheckType < Exception
    end
    #
    # Used if one tries to add an unknown 
    # caching strategy
    class UnknownCachingStrategy < Exception
    end

    # Used if one tries to register an
    # incompatible comparator
    class IncompatibleComparator < Exception
    end
    #
    # Used if one tries to register an
    # incompatible caching strategy
    class IncompatibleCachingStrategy < Exception
    end

    # Used if one tries to delete an
    # unexisting probe
    class CheckDoesNotExist < Exception
    end
    
    # Used if one tries to use an unexisting
    # cache
    class CacheDoesNotExist < Exception
    end

    # Used if one forgot to implement that
    # method
    class MustHaveMethodNotImplemented < Exception
    end

    # Used if one use the library the wrong way
    class WrongUsageOfLibrary < Exception
    end

    # Use if one tries to register an internal
    # keyword
    class UsedInternalKeyword < Exception
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
the_array_comparator-0.5.0 lib/the_array_comparator/exceptions.rb
the_array_comparator-0.4.0 lib/the_array_comparator/exceptions.rb
the_array_comparator-0.3.4 lib/the_array_comparator/exceptions.rb
the_array_comparator-0.3.1 lib/the_array_comparator/exceptions.rb
the_array_comparator-0.3.0 lib/the_array_comparator/exceptions.rb