Error Strict Mode

Handling Encountered Errors in the Circuit.

When instantiating your circuit set errorHandlingModeStrict to true if you'd like the SDK to take a strict approach to error handling.

const newCircuit = new Circuit(chronicleSigner, undefined, true);

Note that for when errorHandlingModeStrict is enabled, the retry count in condition monitoring is ignored and an error will throw immediately upon the first failure, interrupting the Circuit.

Further, if an error is encountered at any point within executing the LitAction or broadcasting signed actions, the Circuit too will be interrupted under this mode.

Last updated