public void throwRandomException () throws BusinessException, AnotherBusinessException {
Random r = new Random();
int randomValue = r.nextInt(2);
if (randomValue == 0) {
throw new BusinessException("Business exception 1 is being thrown.");
}
else {
throw new AnotherBusinessException("Business exception 2 is being thrown.");
}
}