FINERACT-942 Added and enforced MutableException Checkstyle
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
00a8feea8f
commit
b20de7bced
+6
-2
@@ -26,14 +26,16 @@ import org.apache.fineract.infrastructure.core.exception.AbstractPlatformDomainR
|
||||
*/
|
||||
public class DuplicateClientIdentifierException extends AbstractPlatformDomainRuleException {
|
||||
|
||||
private Long documentTypeId;
|
||||
private String identifierKey;
|
||||
private final Long documentTypeId;
|
||||
private final String identifierKey;
|
||||
private final String identifierType;
|
||||
|
||||
public DuplicateClientIdentifierException(final String identifierType) {
|
||||
super("error.msg.clientIdentifier.type.duplicate",
|
||||
"Active Client identifier of type " + identifierType + " is already present for this client", identifierType);
|
||||
this.identifierType = identifierType;
|
||||
this.identifierKey = null;
|
||||
this.documentTypeId = null;
|
||||
}
|
||||
|
||||
public DuplicateClientIdentifierException(final Long documentTypeId, final String identifierType, final String identifierKey) {
|
||||
@@ -51,6 +53,8 @@ public class DuplicateClientIdentifierException extends AbstractPlatformDomainRu
|
||||
+ identifierType + " with unique key " + identifierKey, clientName, officeName, identifierType, identifierKey);
|
||||
this.identifierType = identifierType;
|
||||
this.identifierKey = identifierKey;
|
||||
this.documentTypeId = null;
|
||||
|
||||
}
|
||||
|
||||
public Long getDocumentTypeId() {
|
||||
|
||||
Reference in New Issue
Block a user