Handles an error with specified options. Logs error and optionally shows user-friendly notification.
The error to handle
Optionaloptions: ErrorHandlerOptionsError handling options
Promise resolving when handling is complete
Shows a user-friendly error notification.
User-friendly error message
Optionalseverity: "error" | "warning" | "info"Severity level
Optionalactions: { action: () => void | Promise<void>; title: string }[]Optional actions for the user
Promise resolving to selected action or undefined
Wraps an async operation with error handling. Automatically catches and handles errors from the operation.
Async operation to wrap
Optionaloptions: ErrorHandlerOptionsError handling options
Promise resolving to operation result or undefined on error
Error handler interface for centralized error management. Implementations should provide consistent error handling across the extension.