com.mongodb
Class ServerError

java.lang.Object
  extended by com.mongodb.ServerError

public class ServerError
extends Object

Represents a server error


Method Summary
 int getCode()
          Gets the error code
 String getError()
          Gets the error String
 boolean isNotMasterError()
          returns true if the error is "not master", which usually happens when doing operation on slave
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getError

public String getError()
Gets the error String

Returns:

getCode

public int getCode()
Gets the error code

Returns:

isNotMasterError

public boolean isNotMasterError()
returns true if the error is "not master", which usually happens when doing operation on slave

Returns:

toString

public String toString()
Overrides:
toString in class Object