Error-Ex: Custom Error Subclassing & Stack Tool

Implements easy error subclassing and stack customization for robust Node.js error handling in n8n workflows, ideal for language tools and translations.

n8n
Error-Ex: Custom Error Subclassing & Stack Tool

The error-ex workflow leverages the error-ex library (v1.3.2) to simplify error subclassing and stack trace customization in Node.js-based n8n automations. It allows developers to extend native Error objects with custom properties and formatted stacks, making debugging more intuitive and errors more informative. Key features include support for 'is-arrayish' dependency for flexible argument handling and XO linting for code quality.

Benefits include reduced debugging time in complex workflows, especially in language tools where translation errors need precise categorization (e.g., API failures, locale mismatches). Use cases span translation pipelines, API integrations, and any n8n flow requiring advanced error management—preventing generic stack dumps and enabling targeted recovery logic.

In practice, integrate via npm in custom n8n nodes or scripts: subclass errors like new MyError('Translation failed: %s', details), yielding clean stacks. Maintained by Josh Junon and Sindre Sorhus under MIT license, it's lightweight (minimal deps) yet powerful for production-grade automations, saving hours on error-prone tasks.

$4.99
Last updated November 14, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related Language Tools workflows

More from BestWorkflows

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.