registerRollback

fun <TArgs> registerRollback(tool: Tool<TArgs, *>, rollbackTool: Tool<TArgs, *>)(source)

Registers a rollback relationship between the provided tool and its corresponding rollback tool. Ensures that the tool is not already defined in the rollback tools map.

Parameters

tool

The primary tool to register.

rollbackTool

The tool that acts as the rollback counterpart to the provided tool.

Throws

If the tool is already defined in the rollbackToolsMap.