Files
isp-gate-service/domain/error.go
T
2022-07-27 10:44:07 +03:00

19 lines
349 B
Go

package domain
import (
"github.com/pkg/errors"
)
const ServiceIsNotAvailableErrorMessage = "Service is not available now, please try later"
type Error struct {
ErrorMessage string
ErrorCode string
Details []interface{}
}
var (
ErrAuthorize = errors.New("authorize failed")
ErrAuthenticate = errors.New("authenticate failed")
)