Package de.bwaldvogel.mongo.exception
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,FailedToParseException,ImmutableFieldException,IndexNotFoundException,IndexOptionsConflictException,KeyConstraintError,NoSuchCommandException,PathNotViableException,TypeMismatchException
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.StringgetCodeName()java.lang.StringgetMessageWithoutErrorCode()
-
-
-
Method Detail
-
getCode
public int getCode()
-
getCodeName
public java.lang.String getCodeName()
-
getMessageWithoutErrorCode
public java.lang.String getMessageWithoutErrorCode()
- Overrides:
getMessageWithoutErrorCodein classMongoServerException
-
-