error code wrapping with some generic reuse #178
Annotations
24 errors and 2 warnings
build:
codes.go#L20
missing go.sum entry for module providing package github.com/gregwebs/errors (imported by github.com/gregwebs/errcode); to add:
|
build
undefined: errcode.GetUserMsg
|
lint:
codes.go#L106
cannot use (*CodedError)(nil) (value of type *CodedError) as ErrorCode value in variable declaration: *CodedError does not implement ErrorCode (missing method Error) (typecheck)
|
build:
codes.go#L20
missing go.sum entry for module providing package github.com/gregwebs/errors (imported by github.com/gregwebs/errcode); to add:
|
build
undefined: errcode.GetUserMsg
|
lint:
codes.go#L107
cannot use (*CodedError)(nil) (value of type *CodedError) as unwrapError value in variable declaration: *CodedError does not implement unwrapError (missing method Unwrap) (typecheck)
|
lint:
codes.go#L125
cannot use (*invalidInputErr)(nil) (value of type *invalidInputErr) as ErrorCode value in variable declaration: *invalidInputErr does not implement ErrorCode (missing method Error) (typecheck)
|
lint:
codes.go#L126
cannot use (*invalidInputErr)(nil) (value of type *invalidInputErr) as unwrapError value in variable declaration: *invalidInputErr does not implement unwrapError (missing method Unwrap) (typecheck)
|
lint:
codes.go#L214
cannot use (*NotFoundErr)(nil) (value of type *NotFoundErr) as ErrorCode value in variable declaration: *NotFoundErr does not implement ErrorCode (missing method Error) (typecheck)
|
lint:
codes.go#L215
cannot use (*NotFoundErr)(nil) (value of type *NotFoundErr) as unwrapError value in variable declaration: *NotFoundErr does not implement unwrapError (missing method Unwrap) (typecheck)
|
lint:
codes.go#L227
cannot use (*NotAuthenticatedErr)(nil) (value of type *NotAuthenticatedErr) as ErrorCode value in variable declaration: *NotAuthenticatedErr does not implement ErrorCode (missing method Error) (typecheck)
|
lint:
codes.go#L228
cannot use (*NotAuthenticatedErr)(nil) (value of type *NotAuthenticatedErr) as unwrapError value in variable declaration: *NotAuthenticatedErr does not implement unwrapError (missing method Unwrap) (typecheck)
|
lint:
codes.go#L240
cannot use (*ForbiddenErr)(nil) (value of type *ForbiddenErr) as ErrorCode value in variable declaration: *ForbiddenErr does not implement ErrorCode (missing method Error) (typecheck)
|
lint:
codes.go#L241
cannot use (*ForbiddenErr)(nil) (value of type *ForbiddenErr) as unwrapError value in variable declaration: *ForbiddenErr does not implement unwrapError (missing method Unwrap) (typecheck)
|
govulncheck:
codes.go#L20
missing go.sum entry for module providing package github.com/gregwebs/errors (imported by github.com/gregwebs/errcode); to add:
|
govulncheck:
codes.go#L20
could not import github.com/gregwebs/errors (invalid package name: "")
|
govulncheck:
codes.go#L106
cannot use (*CodedError)(nil) (value of type *CodedError) as ErrorCode value in variable declaration: *CodedError does not implement ErrorCode (missing method Error)
|
govulncheck:
codes.go#L107
cannot use (*CodedError)(nil) (value of type *CodedError) as unwrapError value in variable declaration: *CodedError does not implement unwrapError (missing method Unwrap)
|
govulncheck:
codes.go#L125
cannot use (*invalidInputErr)(nil) (value of type *invalidInputErr) as ErrorCode value in variable declaration: *invalidInputErr does not implement ErrorCode (missing method Error)
|
govulncheck:
codes.go#L126
cannot use (*invalidInputErr)(nil) (value of type *invalidInputErr) as unwrapError value in variable declaration: *invalidInputErr does not implement unwrapError (missing method Unwrap)
|
govulncheck:
codes.go#L214
cannot use (*NotFoundErr)(nil) (value of type *NotFoundErr) as ErrorCode value in variable declaration: *NotFoundErr does not implement ErrorCode (missing method Error)
|
govulncheck:
codes.go#L215
cannot use (*NotFoundErr)(nil) (value of type *NotFoundErr) as unwrapError value in variable declaration: *NotFoundErr does not implement unwrapError (missing method Unwrap)
|
govulncheck:
codes.go#L227
cannot use (*NotAuthenticatedErr)(nil) (value of type *NotAuthenticatedErr) as ErrorCode value in variable declaration: *NotAuthenticatedErr does not implement ErrorCode (missing method Error)
|
govulncheck:
codes.go#L228
cannot use (*NotAuthenticatedErr)(nil) (value of type *NotAuthenticatedErr) as unwrapError value in variable declaration: *NotAuthenticatedErr does not implement unwrapError (missing method Unwrap)
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|