Package com.mongodb
Class MongoSocketException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.MongoException
-
- com.mongodb.MongoSocketException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MongoSocketClosedException
,MongoSocketOpenException
,MongoSocketReadException
,MongoSocketReadTimeoutException
,MongoSocketWriteException
@Deprecated(since="2021-05-27") public class MongoSocketException extends MongoException
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.Subclass ofMongoException
representing a network-related exception- Since:
- 2.12
- 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 MongoSocketException(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 server address for this exception.-
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
-
-
-
-
Constructor Detail
-
MongoSocketException
public MongoSocketException(java.lang.String message, ServerAddress serverAddress)
Deprecated.Construct a new instance.- Parameters:
message
- the messageserverAddress
- the address
-
-
Method Detail
-
getServerAddress
public ServerAddress getServerAddress()
Deprecated.Gets the server address for this exception.- Returns:
- the address
-
-