# BEFORE_HOOK_ERROR variable · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.before_hook_error/
Published: 2026-08-04
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.5.3 — generated reference, not hand-written

Prefix used when logging a failure inside a `beforeCall` hook.

**Signature:**

```typescript
BEFORE_HOOK_ERROR = "Before call hook error:"
```

## Remarks

A throwing before-hook is warned about and then ignored — the call proceeds — so this string is how such failures are recognized in logs. It is a log prefix, not an [IMQRPCError.code](https://imqueue.org/api/rpc/latest/rpc.imqrpcerror.code/) value.

