[#1778] Prevent deletion of Software Module of locked DS (#1793)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-08-01 08:57:50 +03:00
committed by GitHub
parent 6106d3c16c
commit ae09e2fbef
4 changed files with 69 additions and 44 deletions

View File

@@ -31,4 +31,11 @@ public class LockedException extends AbstractServerRtException {
" is forbidden!",
THIS_ERROR);
}
public LockedException(
final Class<? extends BaseEntity> type, final Object entityId, final String operation, final String reason) {
super(type.getSimpleName() + " with given identifier {" + entityId + "} is locked and " + operation +
" is forbidden! Reason: " + reason,
THIS_ERROR);
}
}