-
Notifications
You must be signed in to change notification settings - Fork 1
/
errors.go
23 lines (19 loc) · 1012 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright [2021] - [2022], AssetMantle Pte. Ltd. and the code contributors
// SPDX-License-Identifier: Apache-2.0
package constants
import (
"github.com/AssetMantle/schema/go/errors/base"
)
const projectRoute = "/AssetMantle"
var (
EntityAlreadyExists = base.NewError(projectRoute, 102, "entity already exists")
EntityNotFound = base.NewError(projectRoute, 103, "entity not found")
IncorrectFormat = base.NewError(projectRoute, 104, "incorrect format")
IncorrectMessage = base.NewError(projectRoute, 105, "incorrect message")
InsufficientBalance = base.NewError(projectRoute, 106, "insufficient balance")
InvalidParameter = base.NewError(projectRoute, 107, "invalid parameter")
InvalidRequest = base.NewError(projectRoute, 108, "invalid request")
MetaDataError = base.NewError(projectRoute, 109, "meta data error")
NotAuthorized = base.NewError(projectRoute, 110, "not authorized")
UninitializedUsage = base.NewError(projectRoute, 111, "uninitialized usage")
)