mirror of
https://github.com/navidrome/navidrome.git
synced 2025-07-16 16:41:16 +03:00
- Add ErrNotImplemented error to plugins/api package with proper documentation - Refactor callMethod in wasm_base_plugin to use api.ErrNotImplemented - Improve metrics recording logic to exclude not-implemented methods - Add better tracing and context handling for plugin calls - Reorganize error definitions with clear documentation
13 lines
362 B
Go
13 lines
362 B
Go
package api
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrNotImplemented indicates that the plugin does not implement the requested method.
|
|
// No logic should be executed by the plugin.
|
|
ErrNotImplemented = errors.New("plugin:not_implemented")
|
|
|
|
// ErrNotFound indicates that the requested resource was not found by the plugin.
|
|
ErrNotFound = errors.New("plugin:not_found")
|
|
)
|