object MongoException
Top level Exception for all Exceptions, server-side or client-side, that come from the driver.
- Alphabetic
- By Inheritance
- MongoException
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val RETRYABLE_ERROR_LABEL: String
The operation is safe to retry, that is, retry without rereading the relevant data or considering the semantics of the operation.
The operation is safe to retry, that is, retry without rereading the relevant data or considering the semantics of the operation.
For more information on how transactions affect retries, see the documentation of the "TransientTransactionError", "UnknownTransactionCommitResult" error labels.
- Since
5.12
- Note
Requires MongoDB 9.0 or greater
- val SYSTEM_OVERLOADED_ERROR_LABEL: String
Server is overloaded and shedding load.
Server is overloaded and shedding load. If an application retries explicitly, it should use exponential backoff because the server has indicated overload. This label on its own does not mean that the operation can be safely retried.
- Since
5.12
- Note
Requires MongoDB 9.0 or greater
- See also
- val TRANSIENT_TRANSACTION_ERROR_LABEL: String
An error label indicating that the exception can be treated as a transient transaction error.
An error label indicating that the exception can be treated as a transient transaction error. See the documentation linked below for more information.
- Since
2.4
- See also
- val UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL: String
An error label indicating that the exception can be treated as an unknown transaction commit result.
An error label indicating that the exception can be treated as an unknown transaction commit result. See the documentation linked below for more information.
- Since
2.4
- See also
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: