Skip to main content

error-handling

Use when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages.

ソース情報

リポジトリ
alchemyplatform/aa-sdk
ソースの最終更新活動
2026年5月21日 23:38
検出された SKILL.md の言語
英語
スター
322
フォーク
235

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
4 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
error-handling
description
Use when throwing, catching, wrapping, documenting, or testing runtime errors in aa-sdk packages.
last_verified
2026-05-06T00:00:00.000Z
# Error Handling Runtime package errors should use the SDK error hierarchy rooted at `@alchemy/common` `BaseError`. ## Rules | Rule | When to read | | ----------------------------------------- | ----------------------------------------------- | | [BaseError](rules/base-error.md) | Before adding package runtime errors. | | [No plain Error](rules/no-plain-error.md) | Before writing throw statements in `packages/`. | | [Raise footgun](rules/raise-footgun.md) | Before using or modifying `raise`. | ## Evidence - `packages/common/src/errors/BaseError.ts` extends viem's `BaseError`. - `.eslintrc` forbids `throw new Error(...)` in `packages/**/*` except tests. - `.eslintrc` forbids `import { BaseError } from "viem"` to prevent accidentally using viem's `BaseError` instead of `@alchemy/common`'s. - `packages/wallet-apis/src/utils/schema.ts` wraps Zod validation failures in `@alchemy/common` `BaseError`.
GitHubで見る