Search in sources :

Example 6 with ValidationException

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);
    }
}
Also used : ValidationException(bisq.core.dao.exceptions.ValidationException)

Aggregations

ValidationException (bisq.core.dao.exceptions.ValidationException)6 BondedRole (bisq.core.dao.governance.role.BondedRole)1 Coin (org.bitcoinj.core.Coin)1