This commit is contained in:
Lucio Lelii 2019-05-06 17:34:20 +00:00
parent 050419a324
commit 9c81ad933b
3 changed files with 2 additions and 6 deletions

View File

@ -5,7 +5,7 @@ public class IdNotFoundException extends StorageHubException {
/**
*
*/
private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 6375517955317819916L;
public IdNotFoundException(String id, Throwable cause) {
super(String.format("Item with id %s not found", id), cause);

View File

@ -9,22 +9,18 @@ public class InvalidItemException extends StorageHubException {
public InvalidItemException() {
super();
// TODO Auto-generated constructor stub
}
public InvalidItemException(String message, Throwable cause) {
super(message, cause);
// TODO Auto-generated constructor stub
}
public InvalidItemException(String message) {
super(message);
// TODO Auto-generated constructor stub
}
public InvalidItemException(Throwable cause) {
super(cause);
// TODO Auto-generated constructor stub
}
@Override

View File

@ -34,7 +34,7 @@ public class UserNotAuthorizedException extends StorageHubException {
@Override
public int getStatus() {
return 401;
return 500;
}
}