39 lines · 945 B · TypeScript
RawDownload
import { Schema } from "effect"; import { ToolId, SecretId, PolicyId } from "./ids"; export class ToolNotFoundError extends Schema.TaggedError<ToolNotFoundError>()(  "ToolNotFoundError",  { toolId: ToolId },) {} export class ToolInvocationError extends Schema.TaggedError<ToolInvocationError>()(  "ToolInvocationError",  {    toolId: ToolId,    message: Schema.String,    cause: Schema.optional(Schema.Unknown),  },) {} export class SecretNotFoundError extends Schema.TaggedError<SecretNotFoundError>()(  "SecretNotFoundError",  { secretId: SecretId },) {} export class SecretResolutionError extends Schema.TaggedError<SecretResolutionError>()(  "SecretResolutionError",  {    secretId: SecretId,    message: Schema.String,  },) {} export class PolicyDeniedError extends Schema.TaggedError<PolicyDeniedError>()(  "PolicyDeniedError",  {    policyId: PolicyId,    toolId: ToolId,    reason: Schema.String,  },) {}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t