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에서 보기