Versions in this module Expand all Collapse all v1 v1.0.0 Mar 7, 2026 Changes in this version + var ErrAlreadyDecrypted = New(nil, http.StatusBadRequest, "database file is already decrypted") + var ErrDecryptHashVerificationFailed = New(nil, http.StatusBadRequest, "hash verification failed during decryption") + var ErrDecryptIncorrectKey = New(nil, http.StatusBadRequest, "incorrect decryption key") + var ErrDecryptOperationCanceled = New(nil, http.StatusBadRequest, "decryption operation was canceled") + var ErrKeyEmpty = New(nil, http.StatusBadRequest, "key empty").WithStack() + var ErrKeyLengthMust32 = New(nil, http.StatusBadRequest, "key length must be 32 bytes").WithStack() + var ErrMediaNotFound = New(nil, http.StatusNotFound, "media not found").WithStack() + var ErrNoMemoryRegionsFound = New(nil, http.StatusBadRequest, "no memory regions found") + var ErrNoValidKey = New(nil, http.StatusBadRequest, "no valid key found") + var ErrReadMemoryTimeout = New(nil, http.StatusInternalServerError, "read memory timeout") + var ErrSIPEnabled = New(nil, http.StatusBadRequest, "SIP is enabled") + var ErrTalkerEmpty = New(nil, http.StatusBadRequest, "talker empty").WithStack() + var ErrValidatorNotSet = New(nil, http.StatusBadRequest, "validator not set") + var ErrWeChatDLLNotFound = New(nil, http.StatusBadRequest, "WeChatWin.dll module not found") + var ErrWeChatOffline = New(nil, http.StatusBadRequest, "WeChat is offline") + func Err(c *gin.Context, err error) + func ErrMCPTool(err error) *mcp.CallToolResult + func ErrorHandlerMiddleware() gin.HandlerFunc + func GetCode(err error) int + func HTTPShutDown(cause error) error + func InvalidArg(arg string) error + func Is(err, target error) bool + func RecoveryMiddleware() gin.HandlerFunc + func RootCause(err error) error + type Error struct + Cause error + Code int + Message string + Stack []string + func ChatRoomNotFound(key string) *Error + func ContactNotFound(key string) *Error + func CreatePipeFileFailed(cause error) *Error + func DBCloseFailed(cause error) *Error + func DBConnectFailed(path string, cause error) *Error + func DBFileNotFound(path, pattern string, cause error) *Error + func DBInitFailed(cause error) *Error + func DecodeKeyFailed(cause error) *Error + func DecryptCreateCipherFailed(cause error) *Error + func FileGroupNotFound(name string) *Error + func IncompleteRead(cause error) *Error + func InitCacheFailed(cause error) *Error + func MediaTypeUnsupported(_type string) *Error + func New(cause error, code int, message string) *Error + func Newf(cause error, code int, format string, args ...interface{}) *Error + func OpenFileFailed(path string, cause error) *Error + func OpenPipeFileFailed(cause error) *Error + func OpenProcessFailed(cause error) *Error + func PlatformUnsupported(platform string, version int) *Error + func QueryFailed(query string, cause error) *Error + func ReadFileFailed(path string, cause error) *Error + func ReadMemoryFailed(cause error) *Error + func ReadPipeFileFailed(cause error) *Error + func RefreshProcessStatusFailed(cause error) *Error + func RunCmdFailed(cause error) *Error + func ScanRowFailed(cause error) *Error + func StatFileFailed(path string, cause error) *Error + func TalkerNotFound(talker string) *Error + func TimeRangeNotFound(start, end time.Time) *Error + func WeChatAccountNotFound(name string) *Error + func WeChatAccountNotOnline(name string) *Error + func Wrap(err error, message string, code int) *Error + func WriteOutputFailed(cause error) *Error + func (e *Error) Error() string + func (e *Error) String() string + func (e *Error) Unwrap() error + func (e *Error) WithStack() *Error