public final boolean isAvailable() { if (myValue == ThreeState.UNSURE) { try { myValue = ThreeState.fromBoolean(calcValue()); } catch (VMDisconnectedException e) { LOG.info(e); myValue = ThreeState.NO; } } return myValue.toBoolean(); }
public MessageError(@NotNull String error, boolean log) { super(error); this.log = ThreeState.fromBoolean(log); }