Sha256: e39313307a7682b63afeecf98a9e17b5f978cee1a63257806b702e4cb266981a

Contents?: true

Size: 649 Bytes

Versions: 2

Compression:

Stored size: 649 Bytes

Contents

# Constants and errors common in the whole library
module ROM
  Undefined = Object.new.freeze

  AdapterLoadError = Class.new(StandardError)

  EnvAlreadyFinalizedError = Class.new(StandardError)
  RelationAlreadyDefinedError = Class.new(StandardError)
  NoRelationError = Class.new(StandardError)
  CommandError = Class.new(StandardError)
  TupleCountMismatchError = Class.new(CommandError)
  MapperMissingError = Class.new(StandardError)
  UnknownPluginError = Class.new(StandardError)

  InvalidOptionValueError = Class.new(StandardError)
  InvalidOptionKeyError = Class.new(StandardError)

  EMPTY_ARRAY = [].freeze
  EMPTY_HASH = {}.freeze
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rom-0.7.1 lib/rom/constants.rb
rom-0.7.0 lib/rom/constants.rb