public class ReplyException extends MongoDbException
Constructor and Description |
---|
ReplyException(int okValue,
int errorNumber,
String errorMessage,
Message request,
Reply reply)
Create a new ReplyException.
|
ReplyException(int okValue,
int errorNumber,
String errorMessage,
Reply reply)
Create a new ReplyException.
|
ReplyException(Reply reply)
Create a new ReplyException.
|
ReplyException(Reply reply,
String message)
Create a new ReplyException.
|
ReplyException(Reply reply,
Throwable cause)
Create a new ReplyException.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorNumber()
Returns the value of the "errNo" field in the reply document or -1.
|
int |
getOkValue()
Returns the value of the "ok" field in the reply document or -1.
|
Reply |
getReply()
Returns the reply.
|
Message |
getRequest()
Returns the original request message, if known.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ReplyException(int okValue, int errorNumber, String errorMessage, Message request, Reply reply)
okValue
- The value of the "ok" field in the reply document.errorNumber
- The value of the "errNo" field in the reply document.errorMessage
- The value of the 'errormsg" field in the reply document.request
- The request that caused the error.reply
- The reply with the error.public ReplyException(int okValue, int errorNumber, String errorMessage, Reply reply)
okValue
- The value of the "ok" field in the reply document.errorNumber
- The value of the "errNo" field in the reply document.errorMessage
- The value of the 'errmsg" field in the reply document.reply
- The reply with the error.public ReplyException(Reply reply)
reply
- The reply that raised the exception.public ReplyException(Reply reply, String message)
reply
- The reply that raised the exception.message
- Reason for the error.public int getErrorNumber()
public int getOkValue()
public Reply getReply()
public Message getRequest()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.