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:
java.io.Serializable
Direct Known Subclasses:
MongoException.CursorNotFound, MongoException.DuplicateKey, MongoException.Network

public class MongoException
extends java.lang.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, java.lang.String msg)
           
MongoException(int code, java.lang.String msg, java.lang.Throwable t)
           
MongoException(java.lang.String msg)
           
MongoException(java.lang.String msg, java.lang.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(java.lang.String msg)

MongoException

public MongoException(int code,
                      java.lang.String msg)

MongoException

public MongoException(java.lang.String msg,
                      java.lang.Throwable t)

MongoException

public MongoException(int code,
                      java.lang.String msg,
                      java.lang.Throwable t)

MongoException

public MongoException(BSONObject o)
Method Detail

getCode

public int getCode()