Class RejectedTransactionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bitcoinj.core.RejectedTransactionException
All Implemented Interfaces:
Serializable

public class RejectedTransactionException extends Exception
This exception is used by the TransactionBroadcast class to indicate that a broadcast Transaction has been rejected by the network, for example because it violates a protocol rule. Note that not all invalid transactions generate a reject message, and some peers may never do so.
See Also:
  • Constructor Details

  • Method Details

    • getTransaction

      public Transaction getTransaction()
      Return the original Transaction object whose broadcast was rejected.
    • getRejectMessage

      public RejectMessage getRejectMessage()
      Return the RejectMessage object representing the broadcast rejection.