Table of Contents

Class HookDeniedException

Namespace
Oscova.Agents.Hooks
Assembly
Oscova.Agents.dll

Thrown when a blocking hook denies execution and the active run should stop cleanly.

public sealed class HookDeniedException : Exception, ISerializable, IRunAbortException

Inheritance

Implements

Inherited Members

Constructors

HookDeniedException(HookEventKind, string?, string, string?)

Creates a hook-denial exception with event and optional tool context.

Properties

EventKind

Gets the blocking hook event that denied execution.

Reason

Gets the optional machine-readable denial reason.

ToolName

Gets the tool name when the denial occurred during tool invocation.