IO exceptions now pass up through UserNotValid
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user