2018-09-20 14:52:17 +02:00
|
|
|
package org.gcube.common.storagehub.model.exceptions;
|
|
|
|
|
2019-06-18 14:16:33 +02:00
|
|
|
|
2018-09-20 14:52:17 +02:00
|
|
|
public class BackendGenericError extends StorageHubException{
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
2019-09-19 16:31:34 +02:00
|
|
|
int status = 500;
|
|
|
|
|
2018-09-20 14:52:17 +02:00
|
|
|
public BackendGenericError() {
|
|
|
|
super();
|
2019-09-19 16:31:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public BackendGenericError(int status) {
|
|
|
|
super();
|
|
|
|
this.status = status;
|
2018-09-20 14:52:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public BackendGenericError(String message, Throwable cause) {
|
|
|
|
super(message, cause);
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
|
|
|
|
|
|
|
public BackendGenericError(String message) {
|
|
|
|
super(message);
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
|
|
|
|
|
|
|
public BackendGenericError(Throwable cause) {
|
|
|
|
super(cause);
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
}
|
2019-03-26 16:58:35 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getErrorMessage() {
|
|
|
|
return "generic error in the backend";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getStatus() {
|
2019-09-19 16:31:34 +02:00
|
|
|
return this.status;
|
2019-03-26 16:58:35 +01:00
|
|
|
}
|
2018-09-20 14:52:17 +02:00
|
|
|
|
|
|
|
}
|