mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
Add and rename exception
This commit is contained in:
parent
dd18c6e8c7
commit
a42f91707e
2 changed files with 34 additions and 2 deletions
|
@ -22,11 +22,11 @@ import bisq.core.dao.node.full.RawBlock;
|
|||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public class BlockNotConnectingException extends Exception {
|
||||
public class BlockHashNotConnectingException extends Exception {
|
||||
|
||||
private RawBlock rawBlock;
|
||||
|
||||
public BlockNotConnectingException(RawBlock rawBlock) {
|
||||
public BlockHashNotConnectingException(RawBlock rawBlock) {
|
||||
this.rawBlock = rawBlock;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* This file is part of Bisq.
|
||||
*
|
||||
* Bisq is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* Bisq is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
|
||||
* License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.core.dao.node.parser.exceptions;
|
||||
|
||||
import bisq.core.dao.node.full.RawBlock;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public class BlockHeightNotConnectingException extends Exception {
|
||||
|
||||
private RawBlock rawBlock;
|
||||
|
||||
public BlockHeightNotConnectingException(RawBlock rawBlock) {
|
||||
this.rawBlock = rawBlock;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue