|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.openmrs.api.APIException org.openmrs.api.PatientIdentifierException org.openmrs.api.BlankIdentifierException
public class BlankIdentifierException
Exception thrown when a Patient
or PatientIdentifier
is being saved with an empty
or null PatientIdentifier.getIdentifier()
PatientService
,
PatientIdentifierException
,
Serialized FormConstructor Summary | |
---|---|
BlankIdentifierException()
Default empty constructor. |
|
BlankIdentifierException(java.lang.String message)
General constructor to give the end user a helpful message that relates to why this error occurred. |
|
BlankIdentifierException(java.lang.String message,
PatientIdentifier identifier)
This is the preferred constructor. |
|
BlankIdentifierException(java.lang.String message,
java.lang.Throwable cause)
Convenience constructor used to simply wrap around a different error cause |
|
BlankIdentifierException(java.lang.Throwable cause)
Constructor used to only wrap around a parent cause. |
Method Summary |
---|
Methods inherited from class org.openmrs.api.PatientIdentifierException |
---|
getPatientIdentifier, setPatientIdentifier |
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 BlankIdentifierException()
BlankIdentifierException(String, PatientIdentifier)
constructor to specify a helpful
message to the end user
public BlankIdentifierException(java.lang.String message)
BlankIdentifierException(String, PatientIdentifier)
over this constructor
message
- helpful message string for the end userpublic BlankIdentifierException(java.lang.String message, PatientIdentifier identifier)
message
- helpful message string for the end useridentifier
- the identifier that is blankpublic BlankIdentifierException(java.lang.String message, java.lang.Throwable cause)
cause
message
- helpful message string for the end usercause
- parent exception cause that this exception is wrapping aroundpublic BlankIdentifierException(java.lang.Throwable cause)
BlankIdentifierException(String, Throwable)
constructor before this one.
cause
- the parent wrapping cause
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |