IO exceptions now pass up through UserNotValid

This commit is contained in:
Dave
2015-07-21 21:41:46 +02:00
parent b4f55a80d0
commit 3058f440d3
2 changed files with 9 additions and 1 deletions

View File

@@ -17,5 +17,13 @@
package nodash.exceptions; package nodash.exceptions;
public class NoUserNotValidException extends NoDashException { public class NoUserNotValidException extends NoDashException {
public NoUserNotValidException() {
super();
}
public NoUserNotValidException(Exception e) {
super(e);
}
private static final long serialVersionUID = -6432604940919299965L; private static final long serialVersionUID = -6432604940919299965L;
} }

View File

@@ -66,7 +66,7 @@ public final class NoSession implements Serializable {
NoUtil.wipeChars(password); NoUtil.wipeChars(password);
this.uuid = UUID.randomUUID().toString(); this.uuid = UUID.randomUUID().toString();
} catch (IOException e) { } catch (IOException e) {
throw new NoUserNotValidException(); throw new NoUserNotValidException(e);
} catch (IllegalBlockSizeException e) { } catch (IllegalBlockSizeException e) {
throw new NoUserNotValidException(); throw new NoUserNotValidException();
} catch (BadPaddingException e) { } catch (BadPaddingException e) {