handling-transaction-errors

Community

Graceful handling of Prisma transactions.

Authordjankies
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill covers catching and handling transaction errors, mapping known P-codes to user-friendly messages, and implementing timeouts and recovery strategies.

Core Features & Use Cases

  • Error Catching: Wrap transactions with try/catch and inspect Prisma errors.
  • P-Code Mapping: Translate P codes into meaningful messages for users and logs.
  • Recovery Patterns: Implement retry or fallback strategies on transient errors.

Quick Start

Wrap a transaction in try/catch and handle P2002/P2025 with meaningful messages and logging.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: handling-transaction-errors
Download link: https://github.com/djankies/claude-configs/archive/main.zip#handling-transaction-errors

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.