com.toremote.gateway.client
Class ClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
ClientException(java.lang.String s)
           
ClientException(java.lang.String s, int error)
           
ClientException(java.lang.String s, int error, java.lang.Throwable th)
           
ClientException(java.lang.String s, java.lang.Throwable th)
           
ClientException(java.lang.Throwable th)
           
 
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
 

Constructor Detail

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)
Method Detail

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 -