MongoRecoverableExceptionProvider

Registers MongoDB transient/recoverable error codes as RecoverableType.RECOVERABLE, enabling the framework's retry mechanism to automatically handle these errors.

Covered transient error categories:

  • Network: MongoSocketException, MongoServerUnavailableException

  • Timeout: MongoTimeoutException, MongoOperationTimeoutException, MongoExecutionTimeoutException

  • Replica set state change: MongoNodeIsRecoveringException, MongoNotPrimaryException, MongoStalePrimaryException

  • Connection pool: MongoConnectionPoolClearedException

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun register(registrar: RecoverableExceptionRegistrar)