public class CreditsException
extends java.lang.Exception
Constructor and Description |
---|
CreditsException(int clientErrorCode,
java.lang.String msg)
Constructs a CreditsException with supplied error code and message text.
|
CreditsException(int clientErrorCode,
java.lang.String msg,
java.lang.String userMsg)
Constructs a CreditsException with supplied error code and message text
to be forwarded to the Client.
|
Modifier and Type | Method and Description |
---|---|
int |
getClientErrorCode()
Returns the error code to be forwarded to the client.
|
java.lang.String |
getClientErrorMsg()
Returns the error detail message to be forwarded to the client.
|
public CreditsException(int clientErrorCode, java.lang.String msg, java.lang.String userMsg)
clientErrorCode
- Error code that can be used to distinguish the
kind of problem. It must be a negative integer, or zero to mean an
unspecified problem.msg
- The detail message.userMsg
- A detail message to be forwarded to the Client. It can
be null. The message should be in simple ASCII, otherwise it might be
altered in order to be sent to the client; multiline text is also
not allowed.public CreditsException(int clientErrorCode, java.lang.String msg)
clientErrorCode
- Error code that can be used to distinguish the
kind of problem. It must be a negative integer, or zero to mean an
unspecified problem.msg
- The detail message.public int getClientErrorCode()
public java.lang.String getClientErrorMsg()