Class OpenmrsCoreModuleException

  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:

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


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


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

moduleId - the module id that is trying to be stopped


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


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

the module ids that caused this exception


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