org.opensync.tools.exception
Class OpenSyncException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.opensync.tools.exception.OpenSyncException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
APConfigException, APDataIntegrityException, APSystemException, APUserException

public class OpenSyncException
extends java.lang.Exception

Catch AssetPlus specific Exceptions

See Also:
Serialized Form

Field Summary
protected  java.lang.String errorCode
           
protected  java.lang.String errorMsg
           
protected  java.lang.String usrMsg
           
 
Fields inherited from class java.lang.Exception
 
Constructor Summary
OpenSyncException(java.lang.String errorCode)
          Creates an APException class with the error code.
OpenSyncException(java.lang.String errorCode, java.lang.Throwable cause)
           
OpenSyncException(java.lang.Throwable cause)
          Creates an APException class with the error code.
 
Method Summary
 void action()
          default action method.
 java.lang.Throwable getCause()
           
 java.lang.String getCode()
          Returns the error code.
 java.lang.String getUserMessage(java.lang.String errorCode, java.lang.String lang)
          Returns the user message associated with this error.
 void log()
          default action method.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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
 

Field Detail

errorCode

protected java.lang.String errorCode

errorMsg

protected java.lang.String errorMsg

usrMsg

protected java.lang.String usrMsg
Constructor Detail

OpenSyncException

public OpenSyncException(java.lang.String errorCode)
Creates an APException class with the error code.

Parameters:
errorCode - Error code for which this exception was generated.

OpenSyncException

public OpenSyncException(java.lang.String errorCode,
                         java.lang.Throwable cause)

OpenSyncException

public OpenSyncException(java.lang.Throwable cause)
Creates an APException class with the error code.

Method Detail

getCode

public java.lang.String getCode()
Returns the error code.

Returns:
returns the code.

getCause

public java.lang.Throwable getCause()

getUserMessage

public java.lang.String getUserMessage(java.lang.String errorCode,
                                       java.lang.String lang)
Returns the user message associated with this error.

Returns:
Returns the message associated with this error.

log

public void log()
default action method.


action

public void action()
default action method.



Copyright © 2004 sourceforge. All Rights Reserved.