IO exceptions now pass up through UserNotValid
This commit is contained in:
@@ -17,5 +17,13 @@
|
||||
package nodash.exceptions;
|
||||
|
||||
public class NoUserNotValidException extends NoDashException {
|
||||
public NoUserNotValidException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public NoUserNotValidException(Exception e) {
|
||||
super(e);
|
||||
}
|
||||
|
||||
private static final long serialVersionUID = -6432604940919299965L;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ public final class NoSession implements Serializable {
|
||||
NoUtil.wipeChars(password);
|
||||
this.uuid = UUID.randomUUID().toString();
|
||||
} catch (IOException e) {
|
||||
throw new NoUserNotValidException();
|
||||
throw new NoUserNotValidException(e);
|
||||
} catch (IllegalBlockSizeException e) {
|
||||
throw new NoUserNotValidException();
|
||||
} catch (BadPaddingException e) {
|
||||
|
||||
Reference in New Issue
Block a user