Files
Olares/cli/pkg/wizard/errors.go
eball 99176209ea cli: add user activation command (#1972)
* feat: implement SSI Authentication Client and User Store

* feat: add user activation command with validation and wizard integration

* fix: set default values for BflUrl and VaultUrl in user activation command
2025-10-23 11:03:19 +08:00

23 lines
457 B
Go

package wizard
import "fmt"
// AuthError represents authentication errors
type AuthError struct {
Code ErrorCode `json:"code"`
Message string `json:"message"`
Data any `json:"data,omitempty"`
}
func (e *AuthError) Error() string {
return fmt.Sprintf("[%s] %s", e.Code, e.Message)
}
func NewAuthError(code ErrorCode, message string, data any) *AuthError {
return &AuthError{
Code: code,
Message: message,
Data: data,
}
}