org.openmobileis.common.util.exception
Class OpenMISException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.openmobileis.common.util.exception.OpenMISException
All Implemented Interfaces:
OpenMISSerializable, java.io.Serializable
Direct Known Subclasses:
DefaultException, ProfileNotFoundException, ProfileNotFoundException, 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

Constructor Summary
OpenMISException()
           
OpenMISException(int logPriority)
           
OpenMISException(java.lang.String msg)
           
OpenMISException(java.lang.String msg, int logPriority)
           
OpenMISException(java.lang.String msg, java.lang.Throwable t)
           
OpenMISException(java.lang.String msg, java.lang.Throwable t, int logPriority)
           
OpenMISException(java.lang.Throwable t)
           
OpenMISException(java.lang.Throwable t, int logPriority)
           
 
Method Summary
 java.lang.Throwable getNestedError()
           
 int getPriority()
           
abstract  int getService()
          return the service assocated to the exception
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter writer)
           
 
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
 

Constructor Detail

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

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 2006 OpenMobileIS. All Rights Reserved.