ToolDeniedException class
Thrown by AgentKernel.invokeTool when an AgentHook denies a tool
call via ToolDecisionDeny (FR-010).
- Implemented types
- Available extensions
Constructors
- ToolDeniedException(String canonicalName, String reason, String hookId)
Properties
- canonicalName → String
-
Canonical name (
"$namespace.$toolName") of the denied tool.final - hashCode → int
-
The hash code for this object.
no setterinherited
- hookId → String
-
Id of the hook that denied the call.
final
- reason → String
-
Human-readable reason supplied by the hook.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFailure(
[StackTrace? stackTrace]) → AppFailure -
Available on Exception, provided by the ExceptionToFailure extension
Convert this exception to an AppFailure. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited