mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-15 15:15:51 +01:00
Transport layer refactor adaptations for mobile platforms: - Refactor processIOSMethod to use RuntimeRequest signature - Refactor processAndroidMethod to use RuntimeRequest signature - Add androidRequest constant (12) and handler to messageprocessor.go - Update messageprocessor_mobile_stub.go for non-mobile builds - Fix undefined windowID variable (use req.WebviewWindowID) - Add iOS event generation to tasks/events/generate.go - Add InvalidIOSCallError and InvalidAndroidCallError to errs package - Update iOS delegate and webview files with generated event handlers iOS methods refactored: Haptics.Impact, Device.Info, Scroll settings, Navigation gestures, Link previews, Debug inspector, UserAgent Android methods refactored: Haptics.Vibrate, Device.Info, Toast.Show 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
1.1 KiB
Go
28 lines
1.1 KiB
Go
//go:generate go run codegen/error_functions/main.go
|
|
package errs
|
|
|
|
type ErrorType string
|
|
|
|
type WailsError interface {
|
|
Cause() error
|
|
Error() string
|
|
Msg() string
|
|
ErrorType() ErrorType
|
|
}
|
|
|
|
const (
|
|
InvalidWindowCallError ErrorType = "Invalid window call"
|
|
InvalidApplicationCallError ErrorType = "Invalid application call"
|
|
InvalidBrowserCallError ErrorType = "Invalid browser call"
|
|
InvalidSystemCallError ErrorType = "Invalid system call"
|
|
InvalidScreensCallError ErrorType = "Invalid screens call"
|
|
InvalidDialogCallError ErrorType = "Invalid dialog call"
|
|
InvalidContextMenuCallError ErrorType = "Invalid context menu call"
|
|
InvalidClipboardCallError ErrorType = "Invalid clipboard call"
|
|
InvalidBindingCallError ErrorType = "Invalid binding call"
|
|
BindingCallFailedError ErrorType = "Binding call failed"
|
|
InvalidEventsCallError ErrorType = "Invalid events call"
|
|
InvalidRuntimeCallError ErrorType = "Invalid runtime call"
|
|
InvalidIOSCallError ErrorType = "Invalid iOS call"
|
|
InvalidAndroidCallError ErrorType = "Invalid Android call"
|
|
)
|