Comments (2)
Hey @cicoyle, so looking through predefined.go
I see that there's currently 5 different config related errors set in there. Should I only focus on migrating these over to the gRPC richer error model?
// Configuration.
ErrConfigurationStoresNotConfigured = "configuration stores not configured"
ErrConfigurationStoreNotFound = "configuration store %s not found"
ErrConfigurationGet = "failed to get %s from Configuration store %s: %v"
ErrConfigurationSubscribe = "failed to subscribe %s from Configuration store %s: %v"
ErrConfigurationUnsubscribe = "failed to unsubscribe to configuration request %s: %v"
from dapr.
Just started working on this, made a new file pkg/api/errors/config.go
, looks like this
package errors
import "github.com/dapr/kit/errors"
type ConfigurationError struct {
name string
}
func Configuration(name string) *ConfigurationError {
return &ConfigurationError{
name: name,
}
}
// func (c *ConfigurationError) StoresNotConfigured() error {
// return c.build(
// errors.NewBuilder(grpcCode codes.Code, httpCode int, message string, tag string)
// )
// }
func (c *ConfigurationError) build(err *errors.ErrorBuilder, errCode string, metadata map[string]string) error {
return err.WithErrorInfo(errors.CodePrefixConfigurationStore+errCode, metadata).Build()
}
Wanted to make sure I'm on the right track. I've been looking through the codebase and the other error models that have been standardized have been a huge help thus far. Could I get some feedback?
from dapr.
Related Issues (20)
- Dapr sidecar container can not injected in Pod
- permission to kube-system
- Proposal: Publish additional Docker images that provide libc
- SchedulerReminders Stable
- How to Integration Test State Store
- With almost default configuration, DAPR is loosing KAFKA pubsub messages with new deployment
- Cannot UnregisterActorTimer and stop callback in that timer's callback
- An Endpoint at the placement API that allows to list all Actor Instances
- Dapr sidecar injector is not patching injector to the application pods
- Dapr-sidecar-injector patch the injector to the application pods HOT 2
- GetWorkflowStateAsync "error from internal actor: no such instance exists" HOT 7
- HPA on deployments containing dapr sidecar cpu issue
- Dapr with cosmosdb HOT 2
- Stopping here no longer to output logs, dapr can not start.
- Stopping here no longer to output logs, dapr can not start. HOT 1
- Pubsub bug during graceful shutdown (continuation) HOT 1
- GetWorkflowStateAsync "error from internal actor: no such instance exists" HOT 1
- invokeBinding Not able to propagate traceparent header in dapr 1.13.2 HOT 2
- What does the '-msft.N' suffix mean in AKS extension versions?
- Cron binding fails if there is a delay of several seconds before the cron binding is executed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dapr.