LitListenerSDK
  • Overview
  • Quick Start
  • SDK Reference
    • Instantiate Circuit
    • Set Conditions
    • Conditional Logic
    • Set Actions
    • Execution Constraints
    • IPFS Hash
    • MintGrantBurn PKP
    • Start Circuit
    • Broadcast Transactions
    • Add Secure Key
  • Database and Server Interactions
    • Server-SDK Integration
    • Persistant Circuit Architecture
  • Errors and Logs
    • Logs & Error Handling
    • Error Strict Mode
  • Live
    • No Code Interface
  • Resources
    • Issues
    • Testing
    • Contributors
    • System Architecture
    • About the Devs
    • Storefront
  • Github
  • Lit Developer Docs
Powered by GitBook
On this page
  1. Errors and Logs

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.

PreviousLogs & Error HandlingNextNo Code Interface

Last updated 1 year ago