improve error message

This commit is contained in:
Jonathan Shook
2025-01-08 12:45:52 -06:00
parent e070124e6a
commit e985eb8fcd

View File

@@ -107,17 +107,14 @@ public class OpResolution implements Tagged {
} }
/// This is the top-level product of this resolution layer. An [OpDispenser] can produce a /// This is the top-level product of this resolution layer. An [OpDispenser] can produce a
/// stable /// stable and type-specific [CycleOp] for a given coordinate. It will call other more
/// and type-specific [CycleOp] for a given coordinate. It will call other more primitive layers /// primitive layers as needed to get the components or component functions around which to
/// as needed /// build the final dispenser. These elements may be initialized by side-effect of other
/// to get the components or component functions around which to build the final dispenser. /// operations being resolved. In every case, once an element of any op resolution is
/// These elements may be /// resolved, it should be considered _defined_, and not resolved again.
/// initialized by side-effect of other operations being resolved. In every case, once an
/// element of any op
/// resolution is resolved, it should be considered _defined_, and not resolved again.
public synchronized <OPTYPE extends CycleOp<?>, SPACETYPE extends Space> OpDispenser<OPTYPE> resolveDispenser() { public synchronized <OPTYPE extends CycleOp<?>, SPACETYPE extends Space> OpDispenser<OPTYPE> resolveDispenser() {
if (resolvingDispenser == true) { if (resolvingDispenser == true) {
throw new OpConfigError("Auto-recursion while resolving dispenser for op '" + throw new OpConfigError("Cyclic reference while resolving dispenser for op '" +
template.getName() + template.getName() +
"'"); "'");
} }
@@ -137,7 +134,7 @@ public class OpResolution implements Tagged {
/// activity parameter. /// activity parameter.
public synchronized <OPTYPE extends CycleOp<?>, SPACETYPE extends Space> ParsedOp getParsedOp() { public synchronized <OPTYPE extends CycleOp<?>, SPACETYPE extends Space> ParsedOp getParsedOp() {
if (resolvingParsedOp == true) { if (resolvingParsedOp == true) {
throw new OpConfigError("Auto-recursion while resolving dispenser for op '" + throw new OpConfigError("Cyclic reference while resolving dispenser for op '" +
template.getName() + template.getName() +
"'"); "'");
} }
@@ -154,7 +151,7 @@ public class OpResolution implements Tagged {
/// the associated driver needs to be loaded. /// the associated driver needs to be loaded.
private synchronized <OPTYPE extends CycleOp<?>, SPACETYPE extends Space> DriverAdapter<OPTYPE, SPACETYPE> resolveAdapter() { private synchronized <OPTYPE extends CycleOp<?>, SPACETYPE extends Space> DriverAdapter<OPTYPE, SPACETYPE> resolveAdapter() {
if (resolvingAdapter) { if (resolvingAdapter) {
throw new OpConfigError("Auto-recursion while resolving adapter for op '" + throw new OpConfigError("Cyclic reference while resolving adapter for op '" +
template.getName() + template.getName() +
"'"); "'");
} }