Verbesserung einer Exception-Meldung, OID wird bei fehlgeschlagenem Delete als Meldung mit ausgegeben.
git-svn-id: https://svn.libreccm.org/ccm/trunk@1381 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
90a259d1e7
commit
b3b2306ce1
|
|
@ -199,9 +199,9 @@ class DataObjectImpl implements DataObject {
|
||||||
|
|
||||||
throw new PersistenceException(String.format(
|
throw new PersistenceException(String.format(
|
||||||
"no such property: %s for %s. Available properties: %s",
|
"no such property: %s for %s. Available properties: %s",
|
||||||
property.toString(),
|
property.toString(),
|
||||||
this.toString(),
|
this.toString(),
|
||||||
builder.toString()));
|
builder.toString()));
|
||||||
}
|
}
|
||||||
if (prop.isCollection()) {
|
if (prop.isCollection()) {
|
||||||
if (isDisconnected()) {
|
if (isDisconnected()) {
|
||||||
|
|
@ -422,7 +422,8 @@ class DataObjectImpl implements DataObject {
|
||||||
getSsn().flush();
|
getSsn().flush();
|
||||||
getSsn().assertFlushed(this);
|
getSsn().assertFlushed(this);
|
||||||
} catch (ProtoException pe) {
|
} catch (ProtoException pe) {
|
||||||
throw PersistenceException.newInstance(pe);
|
throw PersistenceException.newInstance(
|
||||||
|
String.format("on oid '%s'", m_oid.toString()), pe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue