Class MongoServerError

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.bwaldvogel.mongo.exception.MongoServerException
de.bwaldvogel.mongo.exception.MongoServerError
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadValueException, ConflictingUpdateOperatorsException, CursorNotFoundException, DollarPrefixedFieldNameException, FailedToOptimizePipelineError, FailedToParseException, ImmutableFieldException, IndexNotFoundException, IndexOptionsConflictException, InvalidOptionsException, KeyConstraintError, NamespaceExistsException, NoReplicationEnabledException, NoSuchCommandException, PathNotViableException, TypeMismatchException, UnsupportedConversionError

public class MongoServerError
extends MongoServerException
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    MongoServerError​(int errorCode, java.lang.String message)  
    MongoServerError​(int errorCode, java.lang.String codeName, java.lang.String message)  
    MongoServerError​(ErrorCode errorCode, java.lang.String message)  
  • Method Summary

    Modifier and Type Method Description
    int getCode()  
    java.lang.String getCodeName()  
    java.lang.String getMessageWithoutErrorCode()  

    Methods inherited from class de.bwaldvogel.mongo.exception.MongoServerException

    isLogError, setLogError

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait