public class MandatoryModuleException extends ModuleMustStartException
Context#startup()
,
ModuleUtil.getMandatoryModules()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
MandatoryModuleException(List<String> moduleIds) |
MandatoryModuleException(String moduleId)
This constructor is used when a user tries to stop a mandatory module.
|
MandatoryModuleException(String moduleId,
String extraErrorMessage)
This constructor is used when a user tries to stop a mandatory module.
|
Modifier and Type | Method and Description |
---|---|
String |
getModuleId()
The id (or ids) of the module that is mandatory
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final long serialVersionUID
public MandatoryModuleException(String moduleId)
moduleId
- the module id that is trying to be stoppedpublic MandatoryModuleException(String moduleId, String extraErrorMessage)
moduleId
- the module id that is trying to be stoppedextraErrorMessage
- extra data to provide in the error's messagepublic String getModuleId()
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.