You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: config/error.go
+3-3
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ import (
19
19
)
20
20
21
21
var (
22
-
ErrEmptyConfigCode="11055"
23
-
ErrViperCode="11056"
24
-
ErrInMemCode="11057"
22
+
ErrEmptyConfigCode="meshkit-11123"
23
+
ErrViperCode="meshkit-11124"
24
+
ErrInMemCode="meshkit-11125"
25
25
26
26
// ErrEmptyConfig is returned when the config has not been initialized.
27
27
ErrEmptyConfig=errors.New(ErrEmptyConfigCode, errors.Alert, []string{"Config not initialized"}, []string{}, []string{"Viper is crashing"}, []string{"Make sure viper is configured properly"})
Copy file name to clipboardexpand all lines: database/error.go
+8-8
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,14 @@ package database
3
3
import"github.com/layer5io/meshkit/errors"
4
4
5
5
var (
6
-
ErrNoneDatabaseCode="11010"
7
-
ErrDatabaseOpenCode="11011"
8
-
ErrSQLMapUnmarshalJSONCode="11012"
9
-
ErrSQLMapUnmarshalTextCode="11013"
10
-
ErrSQLMapMarshalValueCode="11014"
11
-
ErrSQLMapUnmarshalScannedCode="11015"
12
-
ErrSQLMapInvalidScanCode="11016"
13
-
ErrClosingDatabaseConnectionCode="11017"
6
+
ErrNoneDatabaseCode="meshkit-11126"
7
+
ErrDatabaseOpenCode="meshkit-11127"
8
+
ErrSQLMapUnmarshalJSONCode="meshkit-11128"
9
+
ErrSQLMapUnmarshalTextCode="meshkit-11129"
10
+
ErrSQLMapMarshalValueCode="meshkit-11130"
11
+
ErrSQLMapUnmarshalScannedCode="meshkit-11131"
12
+
ErrSQLMapInvalidScanCode="meshkit-11132"
13
+
ErrClosingDatabaseConnectionCode="meshkit-11133"
14
14
ErrNoneDatabase=errors.New(ErrNoneDatabaseCode, errors.Alert, []string{"No Database selected"}, []string{}, []string{"database name is empty"}, []string{"Input a name for the database"})
15
15
ErrSQLMapInvalidScan=errors.New(ErrSQLMapInvalidScanCode, errors.Alert, []string{"invalid data type: expected []byte"}, []string{}, []string{}, []string{})
Copy file name to clipboardexpand all lines: utils/error.go
+28-28
Original file line number
Diff line number
Diff line change
@@ -9,37 +9,37 @@ import (
9
9
)
10
10
11
11
var (
12
-
ErrUnmarshalCode="11043"
13
-
ErrUnmarshalInvalidCode="11044"
14
-
ErrUnmarshalSyntaxCode="11045"
15
-
ErrUnmarshalTypeCode="11046"
16
-
ErrUnmarshalUnsupportedTypeCode="11047"
17
-
ErrUnmarshalUnsupportedValueCode="11048"
18
-
ErrMarshalCode="11049"
19
-
ErrGetBoolCode="11050"
20
-
ErrInvalidProtocolCode="11051"
21
-
ErrRemoteFileNotFoundCode="11052"
22
-
ErrReadingRemoteFileCode="11053"
23
-
ErrReadingLocalFileCode="11054"
24
-
ErrReadFileCode="11106"
25
-
ErrWriteFileCode="11110"
26
-
ErrGettingLatestReleaseTagCode="11055"
12
+
ErrUnmarshalCode="meshkit-11159"
13
+
ErrUnmarshalInvalidCode="meshkit-11160"
14
+
ErrUnmarshalSyntaxCode="meshkit-11161"
15
+
ErrUnmarshalTypeCode="meshkit-11162"
16
+
ErrUnmarshalUnsupportedTypeCode="meshkit-11163"
17
+
ErrUnmarshalUnsupportedValueCode="meshkit-11164"
18
+
ErrMarshalCode="meshkit-11165"
19
+
ErrGetBoolCode="meshkit-11166"
20
+
ErrInvalidProtocolCode="meshkit-11167"
21
+
ErrRemoteFileNotFoundCode="meshkit-11168"
22
+
ErrReadingRemoteFileCode="meshkit-11169"
23
+
ErrReadingLocalFileCode="meshkit-11170"
24
+
ErrReadFileCode="meshkit-11171"
25
+
ErrWriteFileCode="meshkit-11172"
26
+
ErrGettingLatestReleaseTagCode="meshkit-11173"
27
27
ErrInvalidProtocol=errors.New(ErrInvalidProtocolCode, errors.Alert, []string{"invalid protocol: only http, https and file are valid protocols"}, []string{}, []string{"Network protocol is incorrect"}, []string{"Make sure to specify the right network protocol"})
28
-
ErrMissingFieldCode="11076"
29
-
ErrExpectedTypeMismatchCode="11079"
30
-
ErrJsonToCueCode="11085"
31
-
ErrYamlToCueCode="11086"
32
-
ErrJsonSchemaToCueCode="11087"
33
-
ErrCueLookupCode="11089"
34
-
ErrTypeCastCode="11100"
35
-
ErrCreateFileCode="11111"
36
-
ErrCreateDirCode="11117"
28
+
ErrMissingFieldCode="meshkit-11174"
29
+
ErrExpectedTypeMismatchCode="meshkit-11175"
30
+
ErrJsonToCueCode="meshkit-11176"
31
+
ErrYamlToCueCode="meshkit-11177"
32
+
ErrJsonSchemaToCueCode="meshkit-11178"
33
+
ErrCueLookupCode="meshkit-11179"
34
+
ErrTypeCastCode="meshkit-11180"
35
+
ErrCreateFileCode="meshkit-11181"
36
+
ErrCreateDirCode="meshkit-11182"
37
37
// ErrDecodeYamlCode represents the error which is generated when yaml
0 commit comments