@Deprecated
public class ServerError
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
_code
Deprecated.
|
(package private) java.lang.String |
_err
Deprecated.
|
| Constructor and Description |
|---|
ServerError(DBObject o)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Deprecated.
Gets the error code
|
(package private) static int |
getCode(BSONObject o)
Deprecated.
|
java.lang.String |
getError()
Deprecated.
Gets the error String
|
(package private) static java.lang.String |
getMsg(BSONObject o,
java.lang.String def)
Deprecated.
|
boolean |
isNotMasterError()
Deprecated.
returns true if the error is "not master", which usually happens when doing operation on slave
|
java.lang.String |
toString()
Deprecated.
|
ServerError(DBObject o)
static java.lang.String getMsg(BSONObject o, java.lang.String def)
static int getCode(BSONObject o)
public java.lang.String getError()
public int getCode()
public boolean isNotMasterError()
public java.lang.String toString()
toString in class java.lang.Object