Skip to content

feat: implement raise() function - #2

Merged
codewizdave merged 3 commits into
devfrom
task/02-raise-function
May 29, 2026
Merged

feat: implement raise() function#2
codewizdave merged 3 commits into
devfrom
task/02-raise-function

Conversation

@martyy-code

Copy link
Copy Markdown
Contributor

Summary

Implement raise() function for throwing ErrorInstance errors.

  • Returns never type for type safety
  • Throws the provided error instance
  • Works with native throw syntax
  • Supports method chaining

Test Plan

  • 9 unit tests covering all acceptance criteria
  • TypeScript type-check passes
  • ESLint passes
  • Build succeeds

🤖 Generated with Claude Code

martyy-codeand others added 3 commits May 29, 2026 10:01
Implement raise() function that throws ErrorInstance errors:
- Returns never type for type safety
- Throws the provided error instance
- Works with native throw syntax
- Exported from main module
Files:
- src/error/raise.ts - raise() implementation
- tests/raise.test.ts - 9 unit tests
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- src/error/raise/raise.ts
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@martyy-code@codewizdave