-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sim-lib: Redefine RandomActivityErrors to provide finer granularity
This also makes the errors for the `RandomActivityErrors` local, and `SimulationError` use it. Same goes for the errors returned by the `PaymentGenerator`. They used to use `RandomActivityError`, but if that's the case it would have made more sense to be part of `random_activity.rs`. If we define it as something more general (that can therefore be used for other things apart from random activity generation) it make more sense to use a more general error.
- Loading branch information
Showing
2 changed files
with
52 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters