Package org.bitcoinj.core
Class RejectedTransactionException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- org.bitcoinj.core.RejectedTransactionException
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class RejectedTransactionException extends java.lang.ExceptionThis 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
 
 
- 
- 
Constructor Summary
Constructors Constructor Description RejectedTransactionException(Transaction tx, RejectMessage rejectMessage) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RejectMessagegetRejectMessage()Return the RejectMessage object representing the broadcast rejection.TransactiongetTransaction()Return the original Transaction object whose broadcast was rejected. 
 - 
 
- 
- 
Constructor Detail
- 
RejectedTransactionException
public RejectedTransactionException(Transaction tx, RejectMessage rejectMessage)
 
 - 
 
- 
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. 
 - 
 
 -