mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Update response messages
This commit is contained in:
parent
1b26a8e2e7
commit
2692c40467
@ -89,11 +89,13 @@ public class AnalyticsArtifactsManagementServiceImpl
|
||||
return Response.serverError().entity(errMsg).build();
|
||||
}
|
||||
} catch (ArtifactAlreadyExistsException e) {
|
||||
String errMsg = "Failed to create Stream artifact for tenant domain: " + tenantDomain;
|
||||
String errMsg = "Failed to create Stream artifact for tenant domain: " + tenantDomain +
|
||||
"Stream with id: "+ id + "already exists";
|
||||
log.error(errMsg, e);
|
||||
return Response.status(Response.Status.BAD_REQUEST).entity(errMsg).build();
|
||||
} catch (NotFoundException e) {
|
||||
String errMsg = "Failed to edit Stream artifact for tenant domain: " + tenantDomain;
|
||||
String errMsg = "Failed to edit Stream artifact for tenant domain: " + tenantDomain +
|
||||
"Stream with id: "+ id + "doesn't exist";
|
||||
log.error(errMsg, e);
|
||||
return Response.status(Response.Status.NOT_FOUND).entity(errMsg).build();
|
||||
} catch (AxisFault e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user