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

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

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

public class LedgerException extends RuntimeException {

	private static final long serialVersionUID = -4090881296855827888L;

	private TransactionState state = TransactionState.LEDGER_ERROR;

	public LedgerException(String message) {
		super(message);
	}

	public LedgerException(String message, TransactionState transactionState) {
		super(message);
		setState(transactionState);
	}

	public LedgerException(String message, Throwable cause) {
		super(message, cause);
	}

	public TransactionState getState() {
		return state;
	}

	public void setState(TransactionState state) {
		this.state = state;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy