Sha256: daee6e8739e19c0ad82442c320173488fabcb768546584b2c79cebd3108a6fca

Contents?: true

Size: 1007 Bytes

Versions: 33

Compression:

Stored size: 1007 Bytes

Contents

# The exception class used when the data file is not configured.
class DataFileNotConfigured < Exception

  # Set the message to return when a data file is not configured.
  #
  # @return [String] The message to return if the data file is not configured.
  def message
    'No data file was specified. Usage: populates <file>'
  end
end

# The exception class used when the data file is missing.
class MissingDataFile < Exception

  # Set the message to return when a data file is missing.
  #
  # @return [String] The message to return if the data file is missing.
  def message
    'The data file configured is missing.'
  end
end

# The exception class used when the process method is not overridden.
class MethodNotOverridden < Exception

  # Set the message to return when the process method is not overridden.
  #
  # @return [String] The message to return when the process method is not overridden.
  def message
    'You must override the .process method in the extended populator class.'
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
smilodon-0.3.11 lib/smilodon/errors.rb
smilodon-0.3.10 lib/smilodon/errors.rb
smilodon-0.3.9 lib/smilodon/errors.rb
smilodon-0.3.8 lib/smilodon/errors.rb
smilodon-0.3.7 lib/smilodon/errors.rb
smilodon-0.3.6 lib/smilodon/errors.rb
smilodon-0.0.2 lib/smilodon/errors.rb
smilodon-0.0.1 lib/smilodon/errors.rb
smilodon-0.3.5 lib/smilodon/errors.rb
smilodon-0.3.4 lib/smilodon/errors.rb
smilodon-0.3.3 lib/smilodon/errors.rb
smilodon-0.3.2 lib/smilodon/errors.rb
smilodon-0.3.1 lib/smilodon/errors.rb
smilodon-0.3.0 lib/smilodon/errors.rb
smilodon-0.2.8 lib/smilodon/errors.rb
smilodon-0.2.7 lib/smilodon/errors.rb
smilodon-0.2.6 lib/smilodon/errors.rb
smilodon-0.2.5 lib/smilodon/errors.rb
smilodon-0.2.4 lib/smilodon/errors.rb
smilodon-0.2.3 lib/smilodon/errors.rb