mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-11-02 05:27:17 +00:00
PaymentChannelCloseException: Show reason in toString()
This commit is contained in:
@@ -47,11 +47,15 @@ public class PaymentChannelCloseException extends Exception {
|
||||
|
||||
CloseReason error;
|
||||
public CloseReason getCloseReason() {
|
||||
return error;
|
||||
return error;
|
||||
}
|
||||
|
||||
public PaymentChannelCloseException(String message, CloseReason error) {
|
||||
super(message);
|
||||
this.error = error;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "PaymentChannelCloseException for reason " + getCloseReason().toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user