typename MemoryAgentAction::ErrorCode MemoryAgentAction::getErrorCode()

in src/memory_agent_action.hpp [105:112]


typename MemoryAgentAction<RESULT_TYPE, ARGS_TYPES...>::ErrorCode MemoryAgentAction<RESULT_TYPE, ARGS_TYPES...>::getErrorCode() const {
    if (fileExists(cancellationFileName)) {
        return ErrorCode::CANCELLED;
    } else if (finishTime < std::chrono::steady_clock::now()) {
        return ErrorCode::TIMEOUT;
    }
    return ErrorCode::OK;
}