CIA Compliance Manager API Documentation - v1.1.6
    Preparing search index...

    Interface WidgetErrorState

    State interface for widget error management

    interface WidgetErrorState {
        clearError: () => void;
        error: Error | null;
        handleError: (error: unknown) => void;
        hasError: boolean;
        setError: (error: Error) => void;
    }
    Index

    Properties

    clearError: () => void

    Clear the current error state

    error: Error | null

    The current error, if any

    handleError: (error: unknown) => void

    Handle an unknown error (automatically converts to Error type)

    hasError: boolean

    Whether an error is currently present

    setError: (error: Error) => void

    Set a specific error