public class DocumentToLargeException extends MongoDbException
| Constructor and Description | 
|---|
DocumentToLargeException(int size,
                        int maximum,
                        Document document)
Creates a new DocumentToLargeException. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Document | 
getDocument()
Returns the document that was too big. 
 | 
int | 
getMaximumSize()
Returns the maximum size for a document. 
 | 
int | 
getSize()
Returns the size of the document that violated the maximum size. 
 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic DocumentToLargeException(int size,
                        int maximum,
                        Document document)
size - The size of the document that violated the maximum size.maximum - The maximum size for a document.document - The document that was too big.public Document getDocument()
public int getMaximumSize()
public int getSize()
Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.