@Override public void appendException(final Throwable e) { builder1.appendException(e); builder2.appendException(e); }
private void debugSessionInfo(final DebugBuilder debug) { try { if (debugSessionInfo != null) { for (final DebuggableWithTitle info : debugSessionInfo) { debug.appendTitle(info.debugTitle()); info.debugData(debug); } } } catch (final RuntimeException e) { debug.appendException(e); } }
private static void specificationActionMethods(final ObjectSpecification specification, final DebugBuilder debugBuilder) { try { final List<ObjectAction> userActions = specification.getObjectActions(ActionType.USER, Contributed.INCLUDED); final List<ObjectAction> explActions = specification.getObjectActions(ActionType.EXPLORATION, Contributed.INCLUDED); final List<ObjectAction> prototypeActions = specification.getObjectActions(ActionType.PROTOTYPE, Contributed.INCLUDED); final List<ObjectAction> debActions = specification.getObjectActions(ActionType.DEBUG, Contributed.INCLUDED); specificationMethods(userActions, explActions, prototypeActions, debActions, debugBuilder); } catch (final RuntimeException e) { debugBuilder.appendException(e); } }
private static void specificationServiceMethods(final ObjectSpecification specification, final DebugBuilder debugBuilder) { try { final List<ObjectAction> userActions = specification.getServiceActionsReturning(ActionType.USER); final List<ObjectAction> explActions = specification.getServiceActionsReturning(ActionType.EXPLORATION); final List<ObjectAction> prototypeActions = specification.getServiceActionsReturning(ActionType.PROTOTYPE); final List<ObjectAction> debActions = specification.getServiceActionsReturning(ActionType.DEBUG); specificationMethods(userActions, explActions, prototypeActions, debActions, debugBuilder); } catch (final RuntimeException e) { debugBuilder.appendException(e); } }
debug.appendException(exception); debug.endSection(); } catch (final RuntimeException e) { debug.appendln("NOTE - an exception occurred while dumping an exception!"); debug.appendException(e);
/** * @see #adapter(ObjectAdapter) */ public static void adapter(final ObjectAdapter adapter, final DebugBuilder builder) { try { builder.appendln("Adapter", adapter.getClass().getName()); builder.appendln("Class", adapter.getObject() == null ? "none" : adapter.getObject().getClass().getName()); builder.appendAsHexln("Hash", adapter.hashCode()); builder.appendln("Object", adapter.getObject()); builder.appendln("Title", adapter.titleString()); builder.appendln("Specification", adapter.getSpecification().getFullIdentifier()); builder.appendln(); builder.appendln("Icon", adapter.getIconName()); builder.appendln("OID", adapter.getOid()); builder.appendln("State", adapter.getResolveState()); builder.appendln("Version", adapter.getVersion()); } catch (final RuntimeException e) { builder.appendException(e); } }
private static void simpleObject(final ObjectAdapter collectionAdapter, final DebugBuilder debugBuilder) { debugBuilder.appendln(collectionAdapter.titleString()); final ObjectSpecification objectSpec = collectionAdapter.getSpecification(); if (objectSpec.isCollection()) { final CollectionFacet facet = CollectionFacetUtils.getCollectionFacetFromSpec(collectionAdapter); int i = 1; for (final ObjectAdapter element : facet.collection(collectionAdapter)) { debugBuilder.appendln(i++ + " " + element.titleString()); } } else { // object is a regular Object try { final List<ObjectAssociation> fields = objectSpec.getAssociations(); for (int i = 0; i < fields.size(); i++) { final ObjectAssociation field = fields.get(i); final ObjectAdapter obj = field.get(collectionAdapter); final String name = field.getId(); if (obj == null) { debugBuilder.appendln(name, "null"); } else { debugBuilder.appendln(name, obj.titleString()); } } } catch (final RuntimeException e) { debugBuilder.appendException(e); } } }
debugBuilder.appendException(e);
debugBuilder.appendException(e);
debugBuilder.appendln("Aggregated", specification.isValueOrIsAggregated()); } catch (final RuntimeException e) { debugBuilder.appendException(e);