Project

General

Profile

« Previous | Next » 

Revision e6989719

Added by Katja Luther over 3 years ago

add class information to exception

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/org/hibernate/collection/internal/AbstractPersistentCollection.java
1403 1403
		if (getOwner() != null && !initialized) {
1404 1404
		    Object collectionType = null;
1405 1405
		    Field field = null;
1406
		    Class<?> clazz = null;
1406 1407
			try {
1407 1408
				String role = getRole();
1408 1409
				String fieldName = role.substring(role.lastIndexOf(".") + 1);
......
1442 1443
				}
1443 1444
			} catch (Exception ex) {
1444 1445
			    String originalMessage = ex.getMessage();
1445

  
1446
			    String message = originalMessage + " - field: " + field + " - collectionType: " + collectionType.toString();
1446
			    String message = originalMessage + "clazz: " + clazz.getSimpleName()+ "- field: " + field + " - collectionType: " + collectionType.toString();
1447 1447
			    throw new CdmEagerLoadingException(message);
1448 1448
			}
1449 1449
		}

Also available in: Unified diff