mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
19 lines
897 B
Go
19 lines
897 B
Go
package plugins
|
|
|
|
import "github.com/grafana/grafana/pkg/util/errutil"
|
|
|
|
var (
|
|
// ErrPluginNotRegistered error returned when a plugin is not registered.
|
|
ErrPluginNotRegistered = errutil.NotFound("plugin.notRegistered")
|
|
// ErrHealthCheckFailed error returned when a plugin health check failed.
|
|
ErrHealthCheckFailed = errutil.Internal("plugin.failedHealthCheck")
|
|
// ErrPluginUnavailable error returned when a plugin is unavailable.
|
|
ErrPluginUnavailable = errutil.Internal("plugin.unavailable")
|
|
// ErrMethodNotImplemented error returned when a plugin method is not implemented.
|
|
ErrMethodNotImplemented = errutil.NotImplemented("plugin.notImplemented")
|
|
// ErrPluginDownstreamError error returned when a plugin request fails.
|
|
ErrPluginDownstreamError = errutil.Internal("plugin.downstreamError",
|
|
errutil.WithPublicMessage("An error occurred within the plugin"),
|
|
errutil.WithDownstream())
|
|
)
|