try {
visitImpl(component);
} catch (RuntimeException e) {
- VisitException.rethrowOrWrap(e, "Visit of Component %s:%s failed", component.getType(), component.getKey());
+ VisitException.rethrowOrWrap(e, "Visit of Component {key=%s,type=%s} failed", component.getKey(), component.getType());
}
}
} catch (RuntimeException e) {
VisitException.rethrowOrWrap(
e,
- "Visit failed for Component %s:%s%s",
- component.getType(), component.getKey(), new ComponentPathPrinter<>(stack));
+ "Visit failed for Component {key=%s,type=%s} %s",
+ component.getKey(), component.getType(), new ComponentPathPrinter<>(stack));
}
}
@Override
@Nonnull
public String apply(@Nonnull PathAwareVisitor.PathElement<?> input) {
- return format("%s:%s", input.getComponent().getType(), input.getComponent().getKey());
+ return format("%s(type=%s)", input.getComponent().getKey(), input.getComponent().getType());
}
}
}
} catch (RuntimeException e) {
VisitException.rethrowOrWrap(
e,
- "Visit of Component %s:" +
- "%s failed",
- component.getType(), component.getKey());
+ "Visit of Component {key=%s,type=%s} failed",
+ component.getKey(), component.getType());
}
}