p3c-exception-logging
CommunityEnforces Java exception and logging standards.
Authorjie023
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides authoritative guidelines from the P3C Java development manual for exception handling and logging. It helps teams prevent NullPointerExceptions, write robust try-catch-finally blocks, and establish consistent SLF4J-based logging and log management practices.
Core Features & Use Cases
- Exception handling guidance: defines when to catch, which exceptions to swallow, and how to structure finally blocks.
- Logging standards: enforces SLF4J usage, proper message formatting, and log retention practices.
- NPE prevention and safe coding: promotes safe access patterns and Optional usage.
- Code quality and reviews: serves as a reference during code reviews to ensure compliance with P3C rules.
- Use Case: when reviewing or refactoring a Java method to align with P3C exception and logging standards.
Quick Start
Apply the P3C exception and logging guidelines to an existing Java method, converting brittle try-catch blocks into robust patterns and updating logging statements accordingly.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: p3c-exception-logging Download link: https://github.com/jie023/trae-setting/archive/main.zip#p3c-exception-logging Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.