Skip to content

Commit

Permalink
deprecate MongoDBException
Browse files Browse the repository at this point in the history
it's only used in legacy APIs
  • Loading branch information
WebFreak001 committed Feb 5, 2024
1 parent 98cd54f commit 93cd342
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mongodb/vibe/db/mongo/connection.d
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class MongoDriverException : MongoException
* It does not indicate problem with vibe.d driver itself. Most frequently this
* one is thrown when MongoConnection is in checked mode and getLastError() has something interesting.
*/
deprecated("Check for MongoException instead - the modern write commands now throw MongoBulkWriteException on error")
class MongoDBException : MongoException
{
@safe:
Expand Down Expand Up @@ -992,7 +993,7 @@ final class MongoConnection {
private void authenticate()
{
scope (failure) disconnect();

string cn = m_settings.getAuthDatabase;

auto cmd = Bson(["getnonce": Bson(1)]);
Expand Down

0 comments on commit 93cd342

Please sign in to comment.