org.openmobileis.common.util.exception.OpenMISException Class Reference

Inheritance diagram for org.openmobileis.common.util.exception.OpenMISException:

org.openmobileis.common.util.OpenMISSerializable org.openmobileis.common.user.profil.ProfileNotFoundException org.openmobileis.common.user.profile.ProfileNotFoundException org.openmobileis.common.user.UserAlreadyExistException org.openmobileis.common.user.UserNotFoundException org.openmobileis.common.util.exception.DefaultException org.openmobileis.common.util.exception.ServerException org.openmobileis.common.util.exception.ServiceException org.openmobileis.common.util.exception.SynchroException org.openmobileis.embedded.webserver.templates.TemplateNotFoundException List of all members.

Detailed Description

The root class of all exceptions for Java OpenMobileIS developement.

Usage Note : exception can be created from a message, an another exeption (in this case the other exception become nested) with or without a priority code. The priority code correspond to the org.openmobileis.common.util.log.LogPriorities class defined code. Default priority code is LogPriorities.ERROR. To facilitate exception log a default service and priority is defined. A Service can be associated to an exception. It can be a good practice to identify the part of the program that throws the exception during exception log. Default services are defined in the class org.openmobileis.common.util.log.LogServices

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.
See also:
org.openmobileis.common.util.exception.DefaultException

Definition at line 56 of file OpenMISException.java.

Public Member Functions

 OpenMISException (String msg)
 OpenMISException (String msg, int logPriority)
 OpenMISException (String msg, Throwable t)
 OpenMISException (String msg, Throwable t, int logPriority)
 OpenMISException ()
 OpenMISException (int logPriority)
 OpenMISException (Throwable t)
 OpenMISException (Throwable t, int logPriority)
Throwable getNestedError ()
final int getPriority ()
void printStackTrace ()
void printStackTrace (PrintStream ps)
void printStackTrace (PrintWriter writer)
abstract int getService ()
 return the service assocated to the exception

Static Package Attributes

static final long serialVersionUID = 5521257935120563452L


Member Function Documentation

abstract int org.openmobileis.common.util.exception.OpenMISException.getService (  )  [pure virtual]

return the service assocated to the exception

Returns:
int the service int identified associated with the execption
See also:
org.openmobileis.common.util.log.LogServices

Implemented in org.openmobileis.common.user.profil.ProfileNotFoundException, org.openmobileis.common.user.profile.ProfileNotFoundException, org.openmobileis.common.user.UserAlreadyExistException, org.openmobileis.common.user.UserNotFoundException, org.openmobileis.common.util.exception.BadDataFormatException, org.openmobileis.common.util.exception.DatabaseException, org.openmobileis.common.util.exception.DefaultException, org.openmobileis.common.util.exception.ServerException, org.openmobileis.common.util.exception.ServiceException, org.openmobileis.common.util.exception.SynchroException, org.openmobileis.database.fastobjectdb.db.exception.FODBException, org.openmobileis.embedded.webserver.templates.TemplateNotFoundException, and org.openmobileis.synchro.openmsp.OpenMSPException.

Referenced by org.openmobileis.common.util.exception.OpenMISException.printStackTrace(), and org.openmobileis.common.util.log.LogManager.trace().


The documentation for this class was generated from the following file:
Generated on Mon Dec 4 11:03:34 2006 for OpenMobileIS by  doxygen 1.5.1-p1