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-94f89814c4df
master
jensp 2011-12-20 08:31:37 +00:00
parent 90a259d1e7
commit b3b2306ce1
1 changed files with 6 additions and 5 deletions

View File

@ -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);
} }
} }