summaryrefslogtreecommitdiff
path: root/external_plugins/stripe/commands/explain-error.md
diff options
context:
space:
mode:
Diffstat (limited to 'external_plugins/stripe/commands/explain-error.md')
-rw-r--r--external_plugins/stripe/commands/explain-error.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/external_plugins/stripe/commands/explain-error.md b/external_plugins/stripe/commands/explain-error.md
new file mode 100644
index 00000000..6680d666
--- /dev/null
+++ b/external_plugins/stripe/commands/explain-error.md
@@ -0,0 +1,21 @@
+---
+description: Explain Stripe error codes and provide solutions with code examples
+argument-hint: [error_code or error_message]
+---
+
+# Explain Stripe Error
+
+Provide a comprehensive explanation of the given Stripe error code or error message:
+
+1. Accept the error code or full error message from the arguments
+2. Explain in plain English what the error means
+3. List common causes of this error
+4. Provide specific solutions and handling recommendations
+5. Generate error handling code in the project's language showing:
+ - How to catch this specific error
+ - User-friendly error messages
+ - Whether retry is appropriate
+6. Mention related error codes the developer should be aware of
+7. Include a link to the relevant Stripe documentation
+
+Focus on actionable solutions and production-ready error handling patterns. \ No newline at end of file