forked from nemccarthy/stash-pullrequest-builder-plugin
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StashApiClient: Improve exception handling
Don't ever print the stack trace. Don't throw RuntimeException. Don't log a SEVERE message and throw for the same error. Catch most specific exceptions. Don't use semicolon in place of colon in error messages. Make sure there is space after colon. Improve wording. Handle exceptions at the level where they can be reported with sufficient context. Report the whole status line (e.g. "404 Not found") in error messages. Don't mention code 200 in error messages, the code accepts other codes as success.
- Loading branch information
Showing
1 changed file
with
56 additions
and
61 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