public class BlankIdentifierException extends PatientIdentifierException
Patient
or PatientIdentifier
is being saved with an empty
or null PatientIdentifier.getIdentifier()
PatientService
,
PatientIdentifierException
,
Serialized FormConstructor and Description |
---|
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.
|
getPatientIdentifier, setPatientIdentifier
public BlankIdentifierException()
BlankIdentifierException(String, PatientIdentifier)
constructor to specify a helpful
message to the end userpublic BlankIdentifierException(java.lang.String message)
BlankIdentifierException(String, PatientIdentifier)
over this constructormessage
- 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 causeCopyright © 2018 OpenMRS Inc.. All Rights Reserved.