/*
 * Copyright (c) 2016-2019 Chronicle Software Ltd
 */

package net.openhft.chronicle.core.io;

public interface QueryCloseable {
    default boolean isClosing() {
        return isClosed();
    }

    boolean isClosed();

    default void throwExceptionIfClosed() throws IllegalStateException {
        if (isClosed())
            throw new ClosedIllegalStateException("Closed");
    }
}

@@ -309,18 +309,19 @@
  (isClos
-ed
+ing
 ())%0A    
@@ -370,15 +370,40 @@
 ion(
-%22Closed
+isClosed() ? %22Closed%22 : %22Closing
 %22);%0A

Make throwExceptionIfClosed() throw an exception if isClosing()==true, closes #148