Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateAppErrorState ¶
func UpdateAppErrorState(state *model.AppState, err *apperrors.ArgonautError)
UpdateAppErrorState updates error state in app state
Types ¶
type AutoHideErrorMsg ¶
type AutoHideErrorMsg struct{}
AutoHideErrorMsg triggers automatic hiding of errors
type ErrorDisplayInfo ¶
type ErrorDisplayInfo struct {
Title string `json:"title"`
Message string `json:"message"`
Details string `json:"details,omitempty"`
UserAction string `json:"userAction,omitempty"`
Recoverable bool `json:"recoverable"`
Severity string `json:"severity"`
Icon string `json:"icon"`
}
ErrorDisplayInfo holds formatted error information for display
type ErrorHandler ¶
type ErrorHandler struct {
// contains filtered or unexported fields
}
ErrorHandler manages TUI error state and responses
func GetDefaultTUIHandler ¶
func GetDefaultTUIHandler() *ErrorHandler
GetDefaultTUIHandler returns the default TUI error handler
func NewErrorHandler ¶
func NewErrorHandler() (*ErrorHandler, error)
NewErrorHandler creates a new TUI error handler
func (*ErrorHandler) UpdateErrorState ¶
func (h *ErrorHandler) UpdateErrorState(state *model.AppState, err *apperrors.ArgonautError)
UpdateErrorState updates the error state in the app state
Click to show internal directories.
Click to hide internal directories.