mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 01:56:44 +00:00
add mnemonic seed type exception
This commit is contained in:
parent
e0302cef22
commit
2fd7e8e7e4
1 changed files with 12 additions and 0 deletions
|
@ -39,4 +39,16 @@ public class MnemonicException extends Exception {
|
||||||
this.badWord = badWord;
|
this.badWord = badWord;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Thrown when the mnemonic is valid, but for for the expected standard
|
||||||
|
*/
|
||||||
|
public static class MnemonicTypeException extends MnemonicException {
|
||||||
|
public final DeterministicSeed.Type invalidType;
|
||||||
|
|
||||||
|
public MnemonicTypeException(DeterministicSeed.Type invalidType) {
|
||||||
|
super();
|
||||||
|
this.invalidType = invalidType;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue