public class CreditsException extends MetadataException
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()
Gets the error code to be forwarded to the client.
|
java.lang.String |
getClientErrorMsg()
Gets the error detail message to be forwarded to the client.
|
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 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 final int getClientErrorCode()
public final java.lang.String getClientErrorMsg()