Packages

t

reactivemongo.bson

VariantBSONReader

trait VariantBSONReader[-B <: BSONValue, +T] extends AnyRef

A reader that produces an instance of T from a subtype of BSONValue.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VariantBSONReader
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def read(bson: B): T

    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].

Concrete Value Members

  1. def readOpt(bson: B): Option[T]

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

  2. def readTry(bson: B): Try[T]

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