developer-delphi-error-handling-and-diagnostics

Defines a domain-driven exception taxonomy for Delphi and FPC error handling.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-error-handling-and-diagnostics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developer-delphi-error-handling-and-diagnostics
Source: https://github.com/cslsoftwares/ParamentersORM/tree/main/.cursor/skills/developer-delphi-error-handling-and-diagnostics_V1.0.0
Command: npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-error-handling-and-diagnostics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Defines a domain-driven exception taxonomy that enables structured error investigation from logs and stack traces while enforcing safe propagation and predictable runtime failure modes.

Core Features & Use Cases

  • Domain-based exception hierarchy (e.g., EProviderError) to isolate failure domains and improve debugging.
  • Procedures for investigating failures using logs, stack traces, and contextual error messages.
  • Guidance on safe try..except..finally blocks and safe error propagation across modules in Delphi and Free Pascal (FPC).

Quick Start

Define and apply a domain-driven exception taxonomy in your Delphi/FPC projects, ensuring consistent error context is preserved during propagation.

Frequently Asked Questions about developer-delphi-error-handling-and-diagnostics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement structured exception handling in Delphi without refactoring the entire application?

Structured exception handling in Delphi can be implemented by defining a domain-driven taxonomy and applying consistent try..except..finally patterns. This approach preserves error context during propagation across modules without requiring architectural refactoring.

What is a domain-driven exception taxonomy in Free Pascal and when do I need it?

A domain-driven exception taxonomy in Free Pascal isolates failure domains using specific hierarchy classes like EProviderError. You need it to enable structured error investigation from logs and stack traces, ensuring predictable runtime failure modes across multiple modules.

How to investigate Delphi failures using logs and stack traces across multiple modules?

Investigate Delphi failures by applying a domain-driven exception taxonomy to guide error analysis from logs and stack traces. This taxonomy isolates failure domains and uses context-preserving messages to trace errors accurately across multiple modules.

Can I use the same error propagation rules for both Delphi and FPC projects?

Yes, you can enforce safe error propagation rules across both Delphi and FPC projects. By defining a clear exception taxonomy and applying consistent try..except..finally blocks, you ensure predictable runtime failures and context preservation in both environments.

What is the best way to preserve error context when propagating exceptions in Delphi?

The best way to preserve error context in Delphi is to use context-preserving messages within a structured exception taxonomy. This ensures that safe error propagation across modules retains the original failure domain information during runtime.

Why does my Delphi application still experience unpredictable crashes after adding try..except blocks?

Unpredictable crashes often occur because exception handling lacks a domain-driven taxonomy and safe propagation rules. By defining a clear hierarchy like EProviderError and enforcing structured try..except..finally patterns, you isolate failure domains and achieve predictable runtime failure modes.