| Class | Mongo::Error::MaxBSONSize |
| In: |
lib/mongo/error/max_bson_size.rb
|
| Parent: | Error |
Exception that is raised when trying to serialize a document that exceeds max BSON object size.
@since 2.0.0
| MESSAGE | = | "Document exceeds allowed max BSON size.".freeze |
The message is constant.
@since 2.0.0 |
Instantiate the new exception.
@example Instantiate the exception.
Mongo::Error::MaxBSONSize.new(max)
@since 2.0.0