checkNotClosed method

void checkNotClosed()

Implementation

void checkNotClosed() {
  if (closed_) {
    throw Exception("ABSmartly Context is closed");
  } else if (closing_) {
    throw Exception("ABSmartly Context is closing");
  }
}