-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
25 lines (22 loc) · 862 Bytes
/
errors.go
File metadata and controls
25 lines (22 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package mtplugins
import "errors"
const (
ERR_NO_PLUGINS = "no plugins found"
ERR_NOT_A_PLUGIN = "not a plugin"
ERR_CANNOT_GET_VER = "cannot get plugin version"
ERR_NOT_AN_APP = "plugin not for this app"
ERR_BAD_PLUGIN_VER = "plugin version is invalid"
ERR_BAD_APP_VERSION = "incompatible app version for plugin"
ERR_BAD_INIT_FUNC = "cannot find init func for plugin"
ERR_BAD_INIT_TYPE = "wrong plugin init func declaration"
)
var (
ErrNoPlugins = errors.New(ERR_NO_PLUGINS)
ErrNotAPlugin = errors.New(ERR_NOT_A_PLUGIN)
ErrCannotGetVer = errors.New(ERR_CANNOT_GET_VER)
ErrNotAnApp = errors.New(ERR_NOT_AN_APP)
ErrBadPluginVer = errors.New(ERR_BAD_PLUGIN_VER)
ErrBadAppVersion = errors.New(ERR_BAD_APP_VERSION)
ErrBadInitFunc = errors.New(ERR_BAD_INIT_FUNC)
ErrBadInitType = errors.New(ERR_BAD_INIT_TYPE)
)