|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openmrs.api.APIException
org.openmrs.api.ConceptNameInUseException
public class ConceptNameInUseException
This exception is thrown when one attempts to delete a concept that has a conceptName that is being used by an observation
ObsService.getObservationCount(java.util.List, boolean),
ConceptService.saveConcept(org.openmrs.Concept),
Serialized Form| Constructor Summary | |
|---|---|
ConceptNameInUseException()
Generic constructor that gives a normal message about editing not being allowed to the user. |
|
ConceptNameInUseException(java.lang.String message)
Convenience constructor to give the user a message other than normal default one |
|
ConceptNameInUseException(java.lang.String message,
java.lang.Throwable cause)
Convenience constructor to give the user a message other than the normal one and to chain this exception with a parent exception. |
|
ConceptNameInUseException(java.lang.Throwable cause)
Convenience constructor used to only set the parent exception to chain with. |
|
| Method Summary |
|---|
| 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 |
| Constructor Detail |
|---|
public ConceptNameInUseException()
public ConceptNameInUseException(java.lang.String message)
message - the String to show to the user as to why the conceptName's name can't be
changed
public ConceptNameInUseException(java.lang.String message,
java.lang.Throwable cause)
message - the String to show to the user as to why the conceptName's name can't be
changedcause - the parent exceptionpublic ConceptNameInUseException(java.lang.Throwable cause)
ConceptNameInUseException(String, Throwable) constructor is preferred over this one.
cause - the parent exception
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||