Sha256: 3a0425ff114f1341d834a6f179ac2894d747316cebbdaf45aa93fb30a54dbc4b

Contents?: true

Size: 610 Bytes

Versions: 23

Compression:

Stored size: 610 Bytes

Contents

#Some useful errors types
module DataMapper
  class ValidationError < StandardError; end

  class ObjectNotFoundError < StandardError; end

  class MaterializationError < StandardError; end

  class RepositoryNotSetupError < StandardError; end

  class IncompleteResourceError < StandardError; end

  class PersistenceError < StandardError; end

  class PluginNotFoundError < StandardError; end
end # module DataMapper

class StandardError
  # Displays the specific error message and the backtrace associated with it.
  def display
    "#{message}\n\t#{backtrace.join("\n\t")}"
  end
end # class StandardError

Version data entries

23 entries across 23 versions & 6 rubygems

Version Path
datamapper-dm-core-0.9.11 lib/dm-core/support/errors.rb
joevandyk-dm-core-0.9.6 lib/dm-core/support/errors.rb
rpbertp13-dm-core-0.9.11.1 lib/dm-core/support/errors.rb
rpbertp13-dm-core-0.9.11.2 lib/dm-core/support/errors.rb
sam-dm-core-0.9.10 lib/dm-core/support/errors.rb
sam-dm-core-0.9.11 lib/dm-core/support/errors.rb
sam-dm-core-0.9.6 lib/dm-core/support/errors.rb
sam-dm-core-0.9.7 lib/dm-core/support/errors.rb
sam-dm-core-0.9.8 lib/dm-core/support/errors.rb
sam-dm-core-0.9.9 lib/dm-core/support/errors.rb
dm-core-0.9.10 lib/dm-core/support/errors.rb
dm-core-0.9.2 lib/dm-core/support/errors.rb
dm-core-0.9.11 lib/dm-core/support/errors.rb
dm-core-0.9.6 lib/dm-core/support/errors.rb
dm-core-0.9.3 lib/dm-core/support/errors.rb
dm-core-0.9.7 lib/dm-core/support/errors.rb
dm-core-0.9.5 lib/dm-core/support/errors.rb
dm-core-0.9.4 lib/dm-core/support/errors.rb
dm-core-0.9.8 lib/dm-core/support/errors.rb
dm-core-0.9.9 lib/dm-core/support/errors.rb