com.toremote.gateway.client
Class ClientException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.toremote.gateway.client.ClientException
- All Implemented Interfaces:
- java.io.Serializable
public class ClientException
- extends java.lang.Exception
Report exception and set up error code for client side
- See Also:
- Serialized Form
Method Summary |
int |
getErrorCode()
|
void |
setErrorCode(int errorCode)
if you set up error code as 123, you can configure the related g error message in strings-lan.js: __svi18n.erroCode.SErrorCode = message |
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 |
ClientException
public ClientException(java.lang.String s)
ClientException
public ClientException(java.lang.String s,
int error)
ClientException
public ClientException(java.lang.String s,
java.lang.Throwable th)
ClientException
public ClientException(java.lang.String s,
int error,
java.lang.Throwable th)
ClientException
public ClientException(java.lang.Throwable th)
getErrorCode
public int getErrorCode()
setErrorCode
public void setErrorCode(int errorCode)
- if you set up error code as 123, you can configure the related g error message in strings-lan.js: __svi18n.erroCode.SErrorCode = message
- Parameters:
errorCode
-