implicit object WriteConcernErrorReader extends BSONDocumentReader[WriteConcernError]
- Annotations
- @deprecated
- Deprecated
(Since version 0.16.0) Internally use CommandCodecs
- Alphabetic
- By Inheritance
- WriteConcernErrorReader
- BSONDocumentReader
- BSONReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def afterRead[U](f: (WriteConcernError) => U): BSONReader[BSONDocument, U]
Returns a BSON reader that returns the result of applying
f
on the result of this reader.Returns a BSON reader that returns the result of applying
f
on the result of this reader.- f
the function to apply
- Definition Classes
- BSONReader
- final def beforeRead[U <: BSONValue](f: (U) => BSONDocument): BSONReader[U, WriteConcernError]
- Definition Classes
- BSONReader
- def read(doc: BSONDocument): WriteConcernError
Reads a BSON value and produce an instance of
T
.Reads a BSON value and produce an instance of
T
.This method may throw exceptions at runtime. If used outside a reader, one should consider
readTry(bson: B): Try[T]
orreadOpt(bson: B): Option[T]
.- Definition Classes
- WriteConcernErrorReader → BSONReader
- def readOpt(bson: BSONDocument): Option[WriteConcernError]
Tries to produce an instance of
T
from thebson
value, returnsNone
if an error occurred.Tries to produce an instance of
T
from thebson
value, returnsNone
if an error occurred.- Definition Classes
- BSONReader
- def readTry(bson: BSONDocument): Try[WriteConcernError]
Tries to produce an instance of
T
from thebson
value.Tries to produce an instance of
T
from thebson
value.- Definition Classes
- BSONReader