using System;

namespace NBitcoin
{
    public class TransactionNotFoundException : Exception
    {
        public TransactionNotFoundException()
        {
        }
        public TransactionNotFoundException(uint256 txId)
            : this(null, txId, null)
        {

        }
        public TransactionNotFoundException(string message, uint256 txId)
            : this(message, txId, null)
        {
        }
        public TransactionNotFoundException(string message, uint256 txId, Exception inner)
            : base(message ?? "Transaction " + txId + " not found", inner)
        {
            TxId = txId;
        }
        public uint256 TxId
        {
            get;
            set;
        }
    }
}
