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(String message)
General constructor to give the end user a helpful message that relates to why this error
occurred.
|
BlankIdentifierException(String message,
PatientIdentifier identifier)
This is the preferred constructor.
|
BlankIdentifierException(String message,
Throwable cause)
Convenience constructor used to simply wrap around a different error
cause |
BlankIdentifierException(Throwable cause)
Constructor used to only wrap around a parent cause.
|
getPatientIdentifier, setPatientIdentifier
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BlankIdentifierException()
BlankIdentifierException(String, PatientIdentifier)
constructor to specify a helpful
message to the end userpublic BlankIdentifierException(String message)
BlankIdentifierException(String, PatientIdentifier)
over this constructormessage
- helpful message string for the end userpublic BlankIdentifierException(String message, PatientIdentifier identifier)
message
- helpful message string for the end useridentifier
- the identifier that is blankpublic BlankIdentifierException(String message, Throwable cause)
cause
message
- helpful message string for the end usercause
- parent exception cause that this exception is wrapping aroundpublic BlankIdentifierException(Throwable cause)
BlankIdentifierException(String, Throwable)
constructor before this one.cause
- the parent wrapping causeCopyright © 2018 OpenMRS LLC.. All Rights Reserved.