‹ 首页

126-java-exception-handling

@jabrena · 收录于 1 周前

Use when you need to apply Java exception handling best practices — including using specific exception types, managing resources with try-with-resources, securing exception messages, preserving error context via exception chaining, validating inputs early with fail-fast principles, handling thread interruption correctly, documenting exceptions with @throws, enforcing logging policy, translating exceptions at API boundaries, managing retries and idempotency, enforcing timeouts, attaching suppressed exceptions, and propagating failures in async/reactive code. This should trigger for requests such as Exception handling; Use try-with-resources in Java code; Create exception chaining in Java code; Apply fail-fast validation in Java code. Part of cursor-rules-java project

适合你,如果需要在 Java 项目中系统化地处理异常

/ 通过 npx 安装 校验哈希
npx oh-my-skill add jabrena/plinth/126-java-exception-handling
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- jabrena/plinth/126-java-exception-handling
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify jabrena/plinth/126-java-exception-handling
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
415GitHub stars
~673最小装载
~15.9K含声明引用
~15.9K文本包总量
镜像托管

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。