public class

ServerError

extends Object
java.lang.Object
   ↳ com.mongodb.ServerError

Class Overview

Represents a server error

Summary

Public Methods
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()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public int getCode ()

Gets the error code

public String getError ()

Gets the error String

public boolean isNotMasterError ()

returns true if the error is "not master", which usually happens when doing operation on slave

public String toString ()