public NameServerSet(String nameStr) { Name name; try { name = Resolver$.MODULE$.eval(nameStr); } catch (Exception exc) { logger.error("Exception in Resolver.eval for name {}", nameStr, exc); // Since this is called from various places that dont handle specific exceptions, // we have no option than to throw a runtime exception to halt the control flow // This should only happen in case of incorrect configuration. Having a log message // would help identify the problem during tests throw new RuntimeException(exc); } initialize(name); }
public NameServerSet(String nameStr) { Name name; try { name = Resolver$.MODULE$.eval(nameStr); } catch (Exception exc) { logger.error("Exception in Resolver.eval for name {}", nameStr, exc); // Since this is called from various places that dont handle specific exceptions, // we have no option than to throw a runtime exception to halt the control flow // This should only happen in case of incorrect configuration. Having a log message // would help identify the problem during tests throw new RuntimeException(exc); } initialize(name); }
public NameServerSet(String nameStr) { Name name; try { name = Resolver$.MODULE$.eval(nameStr); } catch (Exception exc) { logger.error("Exception in Resolver.eval for name {}", nameStr, exc); // Since this is called from various places that dont handle specific exceptions, // we have no option than to throw a runtime exception to halt the control flow // This should only happen in case of incorrect configuration. Having a log message // would help identify the problem during tests throw new RuntimeException(exc); } initialize(name); }
name = Resolver$.MODULE$.eval(serverRoutingServiceFinagleName); } catch (Exception exc) { logger.error("Exception in Resolver.eval for name {}", serverRoutingServiceFinagleName, exc);
/** Shortcut for a {@link #host(Name)} encoded as a String */ public final Builder host(String host) { return host(Resolver$.MODULE$.eval(host)); }
/** Shortcut for a {@link #host(Name)} encoded as a String */ public final Builder host(String host) { return host(Resolver$.MODULE$.eval(host)); }