PlannedSettlementException.java
package com.tradecloud.domain.settlement;
import com.tradecloud.domain.exception.EnumBusinessException;
/**
* Exception thrown for planned settlement issues.
*/
public class PlannedSettlementException extends EnumBusinessException {
private static final long serialVersionUID = 1L;
public PlannedSettlementException(PlannedSettlementExceptionType exceptionType) {
super(exceptionType);
}
@Override
public PlannedSettlementExceptionType getExceptionType() {
return cast(PlannedSettlementExceptionType.class, exceptionType);
}
public static enum PlannedSettlementExceptionType {
ZERO_VALUES, INVALID_TOTALS
}
}