All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.ledger.IllegalAccountStateException Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.ledger;

/**
 * @description: 账户状态异常
 * @author: imuge
 * @date: 2021/10/28
 **/
public class IllegalAccountStateException extends LedgerException {

    public IllegalAccountStateException() {
        this(TransactionState.ILLEGAL_ACCOUNT_STATE, null);
    }

    public IllegalAccountStateException(String message) {
        this(TransactionState.ILLEGAL_ACCOUNT_STATE, message);
    }

    private IllegalAccountStateException(TransactionState state, String message) {
        super(message);
        assert TransactionState.SUCCESS != state;
        setState(state);
    }

    public IllegalAccountStateException(String message, Throwable cause) {
        super(message, cause);
        setState(TransactionState.ILLEGAL_ACCOUNT_STATE);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy