Class RejectedTransactionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RejectedTransactionException
    extends java.lang.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:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RejectMessage getRejectMessage()
      Return the RejectMessage object representing the broadcast rejection.
      Transaction getTransaction()
      Return the original Transaction object whose broadcast was rejected.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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.