git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/storagehub-model@181762 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3413424063
commit
b24c7e42bf
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue