CIA Compliance Manager — API Documentation - v1.1.50
    Preparing search index...

    Interface ErrorContextValue

    Error context value

    interface ErrorContextValue {
        errors: ErrorEntry[];
        addError: (error: Error, context?: Record<string, unknown>) => void;
        clearError: (id: string) => void;
        clearAllErrors: () => void;
        showToast: (config: ToastConfig) => void;
        hideToast: () => void;
        getLatestError: () => ErrorEntry | undefined;
    }
    Index

    Properties

    errors: ErrorEntry[]

    List of tracked errors

    addError: (error: Error, context?: Record<string, unknown>) => void

    Add an error to tracking

    clearError: (id: string) => void

    Clear a specific error

    clearAllErrors: () => void

    Clear all errors

    showToast: (config: ToastConfig) => void

    Show a toast notification

    hideToast: () => void

    Hide the current toast

    getLatestError: () => ErrorEntry | undefined

    Get the most recent error