Changed Exception to WebApplicationException

This commit is contained in:
Francesco Mangiacrapa 2023-05-02 12:23:55 +02:00
parent bdd92cd2ac
commit 5e98b60a20
1 changed files with 2 additions and 2 deletions

View File

@ -1263,7 +1263,7 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
return doc;
}
// Changed by Francesco
// Added by Francesco
RegisteredFileSet fs = null;
error = null;
Exception filesetExc = null;
@ -1272,7 +1272,7 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
if (deleteList == null || deleteList.isEmpty()) {
error = "List of object going to delete is null or empty";
log.warn(error);
filesetExc = new ConfigurationException(error);
filesetExc = new WebApplicationException(error, Response.Status.BAD_REQUEST);
}
if (error == null) {