com.mongodb
Class MongoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.mongodb.MongoException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MongoException.CursorNotFound, MongoException.DuplicateKey, MongoException.Network

public class MongoException
extends RuntimeException

See Also:
Serialized Form

Nested Class Summary
static class MongoException.CursorNotFound
           
static class MongoException.DuplicateKey
           
static class MongoException.Network
           
 
Constructor Summary
MongoException(BSONObject o)
           
MongoException(int code, String msg)
           
MongoException(int code, String msg, Throwable t)
           
MongoException(String msg)
           
MongoException(String msg, Throwable t)
           
 
Method Summary
 int getCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MongoException

public MongoException(String msg)

MongoException

public MongoException(int code,
                      String msg)

MongoException

public MongoException(String msg,
                      Throwable t)

MongoException

public MongoException(int code,
                      String msg,
                      Throwable t)

MongoException

public MongoException(BSONObject o)
Method Detail

getCode

public int getCode()