mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix compilation failure
This commit is contained in:
commit
97ee77fc19
@ -68,14 +68,14 @@ public class OperationConfigurationService {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
metadataManagementService.createMetadata(metadata);
|
metadataManagementService.createMetadata(metadata);
|
||||||
} catch (MetadataManagementException e) {
|
|
||||||
String msg = "Error occurred while adding operation configuration";
|
|
||||||
log.error(msg, e);
|
|
||||||
throw new OperationConfigException(msg, e);
|
|
||||||
} catch (MetadataKeyAlreadyExistsException e) {
|
} catch (MetadataKeyAlreadyExistsException e) {
|
||||||
String msg = "Operation configuration already exists";
|
String msg = "Operation configuration already exists";
|
||||||
log.error(msg, e);
|
log.error(msg, e);
|
||||||
throw new OperationConfigAlreadyExistsException(msg, e);
|
throw new OperationConfigAlreadyExistsException(msg, e);
|
||||||
|
} catch (MetadataManagementException e) {
|
||||||
|
String msg = "Error occurred while adding operation configuration";
|
||||||
|
log.error(msg, e);
|
||||||
|
throw new OperationConfigException(msg, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,14 +99,14 @@ public class OperationConfigurationService {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
metadataManagementService.deleteMetadata(OPERATION_CONFIG);
|
metadataManagementService.deleteMetadata(OPERATION_CONFIG);
|
||||||
} catch (MetadataManagementException e) {
|
|
||||||
String msg = "Error occurred while deleting operation configuration";
|
|
||||||
log.error(msg, e);
|
|
||||||
throw new OperationConfigException(msg, e);
|
|
||||||
} catch (MetadataKeyNotFoundException e) {
|
} catch (MetadataKeyNotFoundException e) {
|
||||||
String msg = "Operation configuration already exists";
|
String msg = "Operation configuration already exists";
|
||||||
log.error(msg, e);
|
log.error(msg, e);
|
||||||
throw new OperationConfigNotFoundException(msg, e);
|
throw new OperationConfigNotFoundException(msg, e);
|
||||||
|
} catch (MetadataManagementException e) {
|
||||||
|
String msg = "Error occurred while deleting operation configuration";
|
||||||
|
log.error(msg, e);
|
||||||
|
throw new OperationConfigException(msg, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user