|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.lightstreamer.interfaces.metadata.CreditsException
public class CreditsException
Thrown by the notify* methods in MetadataProvider if some functionality cannot be allowed to the supplied User. This may occur if the user is not granted some resource or if the user would exceed the granted amount. Different kinds of problems can be distinguished by an error code. Both the error message detail and the error code will be forwarded by Lightstreamer Kernel to the Client.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.
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.| Method Detail |
|---|
public int getClientErrorCode()
public java.lang.String getClientErrorMsg()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||