org.openmrs.module
Class OpenmrsCoreModuleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.openmrs.module.ModuleMustStartException
                  extended by org.openmrs.module.OpenmrsCoreModuleException
All Implemented Interfaces:
java.io.Serializable

public class OpenmrsCoreModuleException
extends ModuleMustStartException

This error is thrown when OpenMRS is started but there is a module that is core to OpenMRS and that module is not present or did not start

This error is also thrown when trying to stop a module that is marked as core.

See Also:
Context#startup(), ModuleUtil.startup(java.util.Properties), ModuleConstants.CORE_MODULES, Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
OpenmrsCoreModuleException(java.util.Map<java.lang.String,java.lang.String> modules)
           
OpenmrsCoreModuleException(java.lang.String moduleId)
          This constructor is used when a user tries to stop a core module.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getModules()
          The module ids that caused this exception
 
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
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

OpenmrsCoreModuleException

public OpenmrsCoreModuleException(java.lang.String moduleId)
This constructor is used when a user tries to stop a core module.

Parameters:
moduleId - the module id that is trying to be stopped

OpenmrsCoreModuleException

public OpenmrsCoreModuleException(java.util.Map<java.lang.String,java.lang.String> modules)
Parameters:
moduleIds - map from module id to version that is core and didn't start
Method Detail

getModules

public java.util.Map<java.lang.String,java.lang.String> getModules()
The module ids that caused this exception

Returns:
the module ids that caused this exception

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change