273274275276277278279280281282283
if (result != null) { return; } switch (state) { case Stopped: throw new DaemonStoppedException(); case Broken: throw new DaemonUnavailableException("This daemon is broken and will stop."); default: throw new IllegalStateException("Daemon is in unexpected state: " + state); }