public class EncounterTypeLockedException extends APIException
OpenmrsConstants.GLOBAL_PROPERTY_ENCOUNTER_TYPES_LOCKED, 
EncounterService.checkIfEncounterTypesAreLocked(), 
Serialized Form| Constructor and Description | 
|---|
EncounterTypeLockedException()
Generic constructor that gives a normal message about editing not being allowed to the user. 
 | 
EncounterTypeLockedException(String message)
Convenience constructor to give the user a message other than normal default one 
 | 
EncounterTypeLockedException(String message,
                            Throwable cause)
Convenience constructor to give the user a message other than the normal one and to chain
 this exception with a parent exception. 
 | 
EncounterTypeLockedException(Throwable cause)
Convenience constructor used to only set the parent exception to chain with. 
 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic EncounterTypeLockedException()
public EncounterTypeLockedException(String message)
message - the String to show to the user as to why the encounter types are lockedpublic EncounterTypeLockedException(String message, Throwable cause)
message - the String to show to the user as to why the encounter types are lockedcause - the parent exceptionpublic EncounterTypeLockedException(Throwable cause)
EncounterTypeLockedException(String, Throwable) constructor is preferred over this
 one.cause - the parent exceptionCopyright © 2024 OpenMRS Inc.. All rights reserved.