git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/storagehub-model@179289 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
050419a324
commit
9c81ad933b
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -34,7 +34,7 @@ public class UserNotAuthorizedException extends StorageHubException {
|
|||
|
||||
@Override
|
||||
public int getStatus() {
|
||||
return 401;
|
||||
return 500;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue