Add and rename exception

This commit is contained in:
Manfred Karrer 2018-12-05 00:39:12 +01:00
parent dd18c6e8c7
commit a42f91707e
No known key found for this signature in database
GPG key ID: 401250966A6B2C46
2 changed files with 34 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -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;
}
}