Make conflict exception accessible with complex context

This commit is contained in:
Rene Pfeuffer
2019-11-13 10:48:36 +01:00
parent f0f134daeb
commit d1747557b3

View File

@@ -17,7 +17,7 @@ public class ConcurrentModificationException extends ExceptionWithContext {
this(Collections.singletonList(new ContextEntry(type, id)));
}
private ConcurrentModificationException(List<ContextEntry> context) {
public ConcurrentModificationException(List<ContextEntry> context) {
super(context, createMessage(context));
}
@@ -32,3 +32,4 @@ public class ConcurrentModificationException extends ExceptionWithContext {
.collect(joining(" in ", "", " has been modified concurrently"));
}
}