From b951f79cfded507112cc7f213567c6a43c00e7e8 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 12 May 2020 14:16:13 +0200 Subject: [PATCH] minor refactoring --- .../drongo/crypto/ECIESKeyCrypter.java | 3 --- .../crypto/InvalidPasswordException.java | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 src/main/java/com/sparrowwallet/drongo/crypto/InvalidPasswordException.java diff --git a/src/main/java/com/sparrowwallet/drongo/crypto/ECIESKeyCrypter.java b/src/main/java/com/sparrowwallet/drongo/crypto/ECIESKeyCrypter.java index 64ddf4f..3a1b212 100644 --- a/src/main/java/com/sparrowwallet/drongo/crypto/ECIESKeyCrypter.java +++ b/src/main/java/com/sparrowwallet/drongo/crypto/ECIESKeyCrypter.java @@ -117,7 +117,4 @@ public class ECIESKeyCrypter implements AsymmetricKeyCrypter { } return out.toByteArray(); } - - public static class InvalidPasswordException extends RuntimeException { - } } diff --git a/src/main/java/com/sparrowwallet/drongo/crypto/InvalidPasswordException.java b/src/main/java/com/sparrowwallet/drongo/crypto/InvalidPasswordException.java new file mode 100644 index 0000000..546ba96 --- /dev/null +++ b/src/main/java/com/sparrowwallet/drongo/crypto/InvalidPasswordException.java @@ -0,0 +1,19 @@ +package com.sparrowwallet.drongo.crypto; + +public class InvalidPasswordException extends RuntimeException { + public InvalidPasswordException() { + super(); + } + + public InvalidPasswordException(String message) { + super(message); + } + + public InvalidPasswordException(Throwable cause) { + super(cause); + } + + public InvalidPasswordException(String message, Throwable cause) { + super(message, cause); + } +}