Sha256: 890035c7d12156c685fa8c0a00c9b22ffd51c5d71d2c945de5c71484aeffa751

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

module CriteriaOperator

  # The base exception class for this gem.
  class Error < StandardError; end

  # Exception class for unimplemented functions in abstract classes.
  class NotImplementedError < Error

    # Overrides the default message with a hint regarding the abstract class instantiation.
    # @return [String] the error message
    def message
      'The function that was called is not implemented. '\
      'Probably the containing class is abstract but was instantiated.'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
criteria_operator-0.3.1 lib/criteria_operator/exceptions.rb
criteria_operator-0.3.0 lib/criteria_operator/exceptions.rb
criteria_operator-0.2.0 lib/criteria_operator/exceptions.rb