Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement use of WriteError in Cmdlets #138

Open
McGlovin1337 opened this issue Sep 7, 2021 · 0 comments
Open

Implement use of WriteError in Cmdlets #138

McGlovin1337 opened this issue Sep 7, 2021 · 0 comments
Assignees
Labels
code cleanup Code Enhancements and Improvements enhancement New feature or request
Milestone

Comments

@McGlovin1337
Copy link
Owner

Each Cmdlet should make use of the WriteError method when encountering errors rather than using "throw new Exception"

@McGlovin1337 McGlovin1337 self-assigned this Sep 7, 2021
@McGlovin1337 McGlovin1337 added code cleanup Code Enhancements and Improvements enhancement New feature or request labels Sep 7, 2021
@McGlovin1337 McGlovin1337 added this to the Release 0.7.0 milestone Sep 13, 2021
McGlovin1337 added a commit that referenced this issue Nov 2, 2021
* Replace WriteWarning with WriteError in Add-DSClientDeleteItem, RestoreItem and ValidationItem Cmdlets
McGlovin1337 added a commit that referenced this issue Nov 2, 2021
* Add-DSClientMSSqlServerBackupSetItem: Replace Exception with WriteError in Operating System detection
McGlovin1337 added a commit that referenced this issue Nov 2, 2021
* Add-DSClientTimeRetentionOption: Implement WriteError when attempting to adding duplicate time retention option
McGlovin1337 added a commit that referenced this issue Nov 2, 2021
* Add-DSClientUnixFsBackupSetItem: Implement WriteError during Operating System detection
McGlovin1337 added a commit that referenced this issue Nov 2, 2021
* Add-DSClientWinFsBackupSetItem: Implement WriteError during Operating System Detection
McGlovin1337 added a commit that referenced this issue Nov 2, 2021
* WriteError implemented into BaseDSClientBackupSetDataBrowser class in place of throw exception
McGlovin1337 added a commit that referenced this issue Nov 4, 2021
Implement use of WriteError in place of thrown exceptions where appropriate
McGlovin1337 added a commit that referenced this issue Nov 5, 2021
Provide more informative errror output and use non-terminating exceptions. Related to Issue #138
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Code Enhancements and Improvements enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant