public class ServerVersionException extends MongoDbException
Constructor and Description |
---|
ServerVersionException(String operation,
VersionRange range,
Version actual,
Message message)
Creates a new ServerVersionException.
|
Modifier and Type | Method and Description |
---|---|
Version |
getActualVersion()
Returns the actual server version.
|
Version |
getMaximumVersion()
Returns the maximum (exclusive) server version for the operation.
|
String |
getOperation()
Returns the name of the operation.
|
Version |
getRequiredVersion()
Returns the required (inclusive) server version for the operation.
|
Message |
getSentMessage()
Returns the operation's message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ServerVersionException(String operation, VersionRange range, Version actual, Message message)
operation
- The name of the command/operation.range
- The required server version range for the operation.actual
- The actual version from the server.message
- The operation's message.public Version getActualVersion()
public Version getMaximumVersion()
public String getOperation()
public Version getRequiredVersion()
public Message getSentMessage()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.