org.openmobileis.common.util.exception
Class OpenMISException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openmobileis.common.util.exception.OpenMISException
- All Implemented Interfaces:
- OpenMISSerializable, java.io.Serializable
- Direct Known Subclasses:
- DefaultException, ProfilNotFoundException, ServerException, ServiceException, SynchroException, TemplateNotFoundException, UserAlreadyExistException, UserNotFoundException
- public abstract class OpenMISException
- extends java.lang.Exception
- implements OpenMISSerializable
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
- Since:
- JDK 1.1
- Version:
- 1.0.
- Author:
- Philippe Delrieu
- See Also:
DefaultException
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OpenMISException
public OpenMISException(java.lang.String msg)
OpenMISException
public OpenMISException(java.lang.String msg,
int logPriority)
OpenMISException
public OpenMISException(java.lang.String msg,
java.lang.Throwable t)
OpenMISException
public OpenMISException(java.lang.String msg,
java.lang.Throwable t,
int logPriority)
OpenMISException
public OpenMISException()
OpenMISException
public OpenMISException(int logPriority)
OpenMISException
public OpenMISException(java.lang.Throwable t)
OpenMISException
public OpenMISException(java.lang.Throwable t,
int logPriority)
getNestedError
public java.lang.Throwable getNestedError()
getPriority
public final int getPriority()
printStackTrace
public void printStackTrace()
printStackTrace
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
public void printStackTrace(java.io.PrintWriter writer)
getService
public abstract int getService()
- return the service assocated to the exception
- Returns:
- int the service int identified associated with the execption
- See Also:
LogServices
Copyright 2005 e-Care. All Rights Reserved.