This commit is contained in:
Lucio Lelii 2019-09-19 14:31:34 +00:00
parent 3413424063
commit b24c7e42bf
1 changed files with 8 additions and 2 deletions

View File

@ -10,9 +10,15 @@ public class BackendGenericError extends StorageHubException{
*/
private static final long serialVersionUID = 1L;
int status = 500;
public BackendGenericError() {
super();
// TODO Auto-generated constructor stub
}
public BackendGenericError(int status) {
super();
this.status = status;
}
public BackendGenericError(String message, Throwable cause) {
@ -37,7 +43,7 @@ public class BackendGenericError extends StorageHubException{
@Override
public int getStatus() {
return 500;
return this.status;
}
}