Sha256: 4e168a61b20ce09e730a62afc148192376b832f2df8d7cec6dd49c664364c71d

Contents?: true

Size: 768 Bytes

Versions: 14

Compression:

Stored size: 768 Bytes

Contents

module BSON
  # Generic Mongo Ruby Driver exception class.
  class MongoRubyError < StandardError; end

  # Raised when MongoDB itself has returned an error.
  class MongoDBError < RuntimeError; end

  # This will replace MongoDBError.
  class BSONError < MongoDBError; end

  # Raised when given a string is not valid utf-8 (Ruby 1.8 only).
  class InvalidStringEncoding < BSONError; end

  # Raised when attempting to initialize an invalid ObjectId.
  class InvalidObjectId < BSONError; end

  # Raised when trying to insert a document that exceeds the 4MB limit or
  # when the document contains objects that can't be serialized as BSON.
  class InvalidDocument < BSONError; end

  # Raised when an invalid name is used.
  class InvalidKeyName < BSONError; end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bson-1.8.6 lib/bson/exceptions.rb
bson-1.8.6-java lib/bson/exceptions.rb
bson-1.8.5-java lib/bson/exceptions.rb
bson-1.8.5 lib/bson/exceptions.rb
bson-1.8.4 lib/bson/exceptions.rb
bson-1.8.4-java lib/bson/exceptions.rb
bson-1.8.4.rc0-java lib/bson/exceptions.rb
bson-1.8.4.rc0 lib/bson/exceptions.rb
bson-1.8.3-java lib/bson/exceptions.rb
bson-1.8.3 lib/bson/exceptions.rb
bson-1.8.3.rc1-java lib/bson/exceptions.rb
bson-1.8.3.rc1 lib/bson/exceptions.rb
bson-1.8.3.rc0-java lib/bson/exceptions.rb
bson-1.8.3.rc0 lib/bson/exceptions.rb