class TallyMessageBuilder {

    public TallyMessageBuilder(VoucherType voucherType, String branchName) throws TallyMessageBuilderException {
        this.voucherType = voucherType;
        this.branchName = branchName;
        if (this.voucherType == null) {
            throw new TallyMessageBuilderException("Voucher type can not be null.");
        }
        if (this.branchName == null || branchName.equals("")) {
            throw new TallyMessageBuilderException("Branch name can not be empty.");
        }
    }

    public  TallyMessageBuilder(VoucherType voucherType, String branchName);

}