/** * Exception types for Guardrails. * * This module provides custom error classes for guardrail-related errors. */ import type { GuardrailResult } from './types'; /** * Base class for all guardrail-related errors. */ export declare class GuardrailError extends Error { constructor(message: string); } /** * Exception raised when a guardrail tripwire is triggered. * * This exception indicates that a guardrail check has identified * a critical failure that should prevent further processing. */ export declare class GuardrailTripwireTriggered extends GuardrailError { readonly guardrailResult: GuardrailResult; constructor(guardrailResult: GuardrailResult); } /** * Exception raised when there's an issue with guardrail configuration. */ export declare class GuardrailConfigurationError extends GuardrailError { constructor(message: string); } /** * Exception raised when a guardrail check function is not found. */ export declare class GuardrailNotFoundError extends GuardrailError { constructor(name: string); } /** * Exception raised when there's an issue with guardrail execution. */ export declare class GuardrailExecutionError extends GuardrailError { readonly cause?: Error; constructor(message: string, cause?: Error); } //# sourceMappingURL=exceptions.d.ts.map