Stanislav N. aka pztrn
5fc6d3a181
Some checks failed
continuous-integration/drone/push Build is failing
Got rid of context thing which misleads due to existance of stdlib's context package. Also fixed golangci-lint configuration. Fixes #20.
19 lines
755 B
Go
19 lines
755 B
Go
package application
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrApplicationError indicates that error belongs to Application.
|
|
ErrApplicationError = errors.New("application")
|
|
|
|
// ErrApplicationServiceRegister appears when trying to register (and initialize) a service
|
|
// but something went wrong.
|
|
ErrApplicationServiceRegister = errors.New("service registering and initialization")
|
|
|
|
// ErrApplicationServiceAlreadyRegistered appears when trying to register service with already used name.
|
|
ErrApplicationServiceAlreadyRegistered = errors.New("service already registered")
|
|
|
|
// ErrApplicationServiceNotRegistered appears when trying to obtain a service that wasn't previously registered.
|
|
ErrApplicationServiceNotRegistered = errors.New("service not registered")
|
|
)
|