- parameter of this exception has changed, needs to be direct company (short)
name now, not full BasicData instance
Signed-off-by: Roland Häder <roland@mxchange.org>
throw new IllegalArgumentException("basicData.companyShortName is empty"); //NOI18N
} else if (this.isSameCompanyShortNameAdded(basicData)) {
// Throw exception
- throw new BasicDataAlreadyAddedException(basicData);
+ throw new BasicDataAlreadyAddedException(basicData.getCompanyShortName());
} else if ((basicData.getCompanyName() != null) && (basicData.getCompanyName().isEmpty())) {
// Should not be empty string when set
throw new IllegalArgumentException("basicData.companyName is empty"); //NOI18N
} else if ((basicData.getCompanyName() != null) && (this.isSameCompanyNameAdded(basicData))) {
// Throw exception
- throw new BasicDataAlreadyAddedException(basicData);
+ throw new BasicDataAlreadyAddedException(basicData.getCompanyName());
}
// Now add current date