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

    Variable ErrorProviderConst

    ErrorProvider: React.FC<ErrorProviderProps> = ...

    Error Provider Component

    Provides error context to child components, managing error state and toast notifications.

    // Wrap application with ErrorProvider
    <ErrorProvider>
    <App />
    </ErrorProvider>

    // Use in components
    const { addError, showToast } = useError();

    try {
    await fetchData();
    } catch (error) {
    addError(error, { component: 'DataFetcher' });
    showToast({
    message: 'Failed to load data',
    retry: () => fetchData()
    });
    }