Remove obsolete system service error type
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
type (
|
||||
serviceError string
|
||||
)
|
||||
|
||||
const (
|
||||
ErrNoReminderAssignPermissions serviceError = "NoReminderAssignPermissions"
|
||||
)
|
||||
|
||||
func (e serviceError) Error() string {
|
||||
return e.String()
|
||||
}
|
||||
|
||||
func (e serviceError) String() string {
|
||||
return "system.service." + string(e)
|
||||
}
|
||||
|
||||
func (e serviceError) withStack() error {
|
||||
return errors.WithStack(e)
|
||||
}
|
||||
Reference in New Issue
Block a user