Skip to content
Back to skills

Orpc Rethrow Handler

ASecurity

Catch and rethrow specific errors during request handling.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 12, 2026
devopsexpressgit

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add ali-master/skills --skill orpc-rethrow-handler --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orpc Rethrow Handler?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orpc Rethrow Handler
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ali-master-orpc-rethrow-handler/badge)](https://www.skillsdirectory.com/skills/ali-master-orpc-rethrow-handler)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: oRPC Rethrow Handler Plugin
description: Catch and rethrow specific errors during request handling.
license: MIT
metadata:
  author: Ali Torki
  homepage: https://github.com/ali-master
  version: "1.0.0"
---

# Rethrow Handler Plugin

The `RethrowHandlerPlugin` lets you catch and rethrow specific errors during request handling. Useful when your framework has its own error handling mechanism (e.g., global exception filters in NestJS, error middleware in Express).

## Usage

```ts
import { ORPCError } from '@orpc/server'
import { RPCHandler } from '@orpc/server/fetch'
import {
  experimental_RethrowHandlerPlugin as RethrowHandlerPlugin,
} from '@orpc/server/plugins'

const handler = new RPCHandler(router, {
  plugins: [
    new RethrowHandlerPlugin({
      filter: (error) => {
        // Rethrow all non-ORPCError errors
        return !(error instanceof ORPCError)
      },
    }),
  ],
})
```

> The `handler` can be any supported oRPC handler.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.