2018-09-20 14:52:17 +02:00
|
|
|
package org.gcube.common.storagehub.model.exceptions;
|
|
|
|
|
|
|
|
public class UserNotAuthorizedException extends StorageHubException {
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
public UserNotAuthorizedException() {
|
|
|
|
super();
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
|
|
|
|
|
|
|
public UserNotAuthorizedException(String message, Throwable cause) {
|
|
|
|
super(message, cause);
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
|
|
|
|
|
|
|
public UserNotAuthorizedException(String message) {
|
|
|
|
super(message);
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
|
|
|
|
|
|
|
public UserNotAuthorizedException(Throwable cause) {
|
|
|
|
super(cause);
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
|
|
|
|
2019-03-26 16:58:35 +01:00
|
|
|
@Override
|
|
|
|
public String getErrorMessage() {
|
|
|
|
return "user not authorized";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getStatus() {
|
|
|
|
return 401;
|
|
|
|
}
|
2018-09-20 14:52:17 +02:00
|
|
|
|
|
|
|
}
|