Re: how to signal failure to start in Stuart Sierra's Component lib?

2015-12-23 Thread Stuart Sierra
This is an application design decision that will depend on how you want to handle failure in general. If the application cannot run without being able to start the component, then it is appropriate to throw an exception from the component's `start` method. This will abort the system start. The

how to signal failure to start in Stuart Sierra's Component lib?

2015-12-23 Thread fahptv
If a component discovers it cannot start successfully (e.g. some necessary bit of data is badly formatted), how can it tell the system that it's hosed and therefore all dependents are hosed? Should it throw an exception to stop everything? -- You received this message because you are