mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Removing unneccessary catch exception
This commit is contained in:
parent
e8255e45c6
commit
1f507e4224
@ -88,7 +88,8 @@ public class PolicyAdministratorPointImpl implements PolicyAdministratorPoint {
|
|||||||
return policyManager.getPolicies();
|
return policyManager.getPolicies();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public Policy getPolicy(int policyId) throws PolicyManagementException {
|
@Override
|
||||||
|
public Policy getPolicy(int policyId) throws PolicyManagementException {
|
||||||
return policyManager.getPolicy(policyId);
|
return policyManager.getPolicy(policyId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,34 +185,17 @@ public class PolicyAdministratorPointImpl implements PolicyAdministratorPoint {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Feature addFeature(Feature feature) throws FeatureManagementException {
|
public Feature addFeature(Feature feature) throws FeatureManagementException {
|
||||||
try {
|
|
||||||
return featureManager.addFeature(feature);
|
return featureManager.addFeature(feature);
|
||||||
} catch (FeatureManagementException e) {
|
|
||||||
String msg = "Error occurred while persisting the feature.";
|
|
||||||
log.error(msg, e);
|
|
||||||
throw new FeatureManagementException(msg, e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Feature updateFeature(Feature feature) throws FeatureManagementException {
|
public Feature updateFeature(Feature feature) throws FeatureManagementException {
|
||||||
try {
|
|
||||||
return featureManager.updateFeature(feature);
|
return featureManager.updateFeature(feature);
|
||||||
} catch (FeatureManagementException e) {
|
|
||||||
String msg = "Error occurred while persisting the feature.";
|
|
||||||
log.error(msg, e);
|
|
||||||
throw new FeatureManagementException(msg, e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean deleteFeature(int featureId) throws FeatureManagementException {
|
public boolean deleteFeature(int featureId) throws FeatureManagementException {
|
||||||
try {
|
|
||||||
return featureManager.deleteFeature(featureId);
|
return featureManager.deleteFeature(featureId);
|
||||||
} catch (FeatureManagementException e) {
|
|
||||||
String msg = "Error occurred while deleting the feature.";
|
|
||||||
log.error(msg, e);
|
|
||||||
throw new FeatureManagementException(msg, e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user