package com.tradecloud.domain.party;
import com.tradecloud.domain.exception.EnumBusinessException;
/**
* Exception for things that can go wrong with Companies.
*/
public class CompanyException extends EnumBusinessException {
public CompanyException(CompanyExceptionType exceptionType) {
super(exceptionType);
}
@Override
public CompanyExceptionType getExceptionType() {
return cast(CompanyExceptionType.class, exceptionType);
}
}