add mnemonic seed type exception

This commit is contained in:
Craig Raw 2021-10-06 08:22:30 +02:00
parent e0302cef22
commit 2fd7e8e7e4

View file

@ -39,4 +39,16 @@ public class MnemonicException extends Exception {
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;
}
}
}