Packages

implicit object WriteConcernErrorReader extends BSONDocumentReader[WriteConcernError]

Annotations
@deprecated
Deprecated

(Since version 0.16.0) Internally use CommandCodecs

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WriteConcernErrorReader
  2. BSONDocumentReader
  3. BSONReader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. 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
  2. final def beforeRead[U <: BSONValue](f: (U) => BSONDocument): BSONReader[U, WriteConcernError]
    Definition Classes
    BSONReader
  3. 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] or readOpt(bson: B): Option[T].

    Definition Classes
    WriteConcernErrorReaderBSONReader
  4. def readOpt(bson: BSONDocument): Option[WriteConcernError]

    Tries to produce an instance of T from the bson value, returns None if an error occurred.

    Tries to produce an instance of T from the bson value, returns None if an error occurred.

    Definition Classes
    BSONReader
  5. def readTry(bson: BSONDocument): Try[WriteConcernError]

    Tries to produce an instance of T from the bson value.

    Tries to produce an instance of T from the bson value.

    Definition Classes
    BSONReader