Package com.mongodb
Class MongoServerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.MongoException
-
- com.mongodb.MongoServerException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
BulkWriteException
,MongoBulkWriteException
,MongoCommandException
,MongoQueryException
,MongoWriteConcernException
,MongoWriteException
,WriteConcernException
@Deprecated(since="2021-05-27") public abstract class MongoServerException extends MongoException
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.An exception indicating that some error has been raised by a MongoDB server in response to an operation.- Since:
- 2.13
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
-
Constructor Summary
Constructors Constructor Description MongoServerException(int code, java.lang.String message, ServerAddress serverAddress)
Deprecated.Construct a new instance.MongoServerException(java.lang.String message, ServerAddress serverAddress)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServerAddress
getServerAddress()
Deprecated.Gets the address of the server.-
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
-
-
-
-
Constructor Detail
-
MongoServerException
public MongoServerException(java.lang.String message, ServerAddress serverAddress)
Deprecated.Construct a new instance.- Parameters:
message
- the message from the serverserverAddress
- the address of the server
-
MongoServerException
public MongoServerException(int code, java.lang.String message, ServerAddress serverAddress)
Deprecated.Construct a new instance.- Parameters:
code
- the error code from the servermessage
- the message from the serverserverAddress
- the address of the server
-
-
Method Detail
-
getServerAddress
public ServerAddress getServerAddress()
Deprecated.Gets the address of the server.- Returns:
- the address
-
-