updateContext

open fun updateContext(newContext: ExecutionContext, index: Int = 0): TuPrologRuntimeException

Creates a new exception instance with the context with in position index updated to newContext. Subclasses should override this method and return the correct instance.