use of bisq.core.dao.exceptions.ValidationException in project bisq-core by bisq-network.
the class ProposalValidator method validateDataFields.
public void validateDataFields(Proposal proposal) throws ValidationException {
try {
notEmpty(proposal.getName(), "name must not be empty");
notEmpty(proposal.getLink(), "link must not be empty");
} catch (Throwable throwable) {
throw new ValidationException(throwable);
}
}
Aggregations