mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 22:46:56 +01:00
ProtocolException, VerificationException: allow construction without message
This makes usage of `ProtocolException::new` easier.
This commit is contained in:
parent
bc035737d1
commit
8a1a462128
2 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,9 @@ package org.bitcoinj.core;
|
|||
|
||||
@SuppressWarnings("serial")
|
||||
public class ProtocolException extends VerificationException {
|
||||
public ProtocolException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ProtocolException(String msg) {
|
||||
super(msg);
|
||||
|
|
|
@ -18,6 +18,10 @@ package org.bitcoinj.core;
|
|||
|
||||
@SuppressWarnings("serial")
|
||||
public class VerificationException extends RuntimeException {
|
||||
public VerificationException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public VerificationException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue