public class CreditsException extends MetadataException
Constructor and Description |
---|
CreditsException(int clientErrorCode,
String msg)
Constructs a CreditsException with supplied error code and message text.
|
CreditsException(int clientErrorCode,
String msg,
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.
|
String |
getClientErrorMsg()
Gets the error detail message to be forwarded to the client.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CreditsException(int clientErrorCode, @Nullable 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, @Nullable String msg, @Nullable 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.Copyright © 2021. All rights reserved.