com.google.bitcoin.protocols.channels
Class PaymentChannelCloseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.bitcoin.protocols.channels.PaymentChannelCloseException
All Implemented Interfaces:
Serializable

public class PaymentChannelCloseException
extends Exception

Used to indicate that a channel was closed before it was expected to be closed. This could mean the connection timed out, the other send sent an error or a CLOSE message, etc

See Also:
Serialized Form

Nested Class Summary
static class PaymentChannelCloseException.CloseReason
           
 
Constructor Summary
PaymentChannelCloseException(String message, PaymentChannelCloseException.CloseReason error)
           
 
Method Summary
 PaymentChannelCloseException.CloseReason getCloseReason()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PaymentChannelCloseException

public PaymentChannelCloseException(String message,
                                    PaymentChannelCloseException.CloseReason error)
Method Detail

getCloseReason

public PaymentChannelCloseException.CloseReason getCloseReason()

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2014. All rights reserved.