ConsignmentException.java
package com.tradecloud.domain.consignment;
import com.tradecloud.domain.exception.EnumBusinessException;
/**
* This exception should be thrown when a consignment change is rejected due to certain validation checks.
*/
public class ConsignmentException extends EnumBusinessException {
private static final long serialVersionUID = 1L;
public ConsignmentException(ConsignmentExceptionType consignmentExceptionType) {
super(consignmentExceptionType);
}
@Override
public ConsignmentExceptionType getExceptionType() {
return cast(ConsignmentExceptionType.class, exceptionType);
}
}