-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This PR hooks up all Leo calls in LeoDao, all WSM calls in WorkspaceManagerDao, and a single call to createBackup in WorkspaceDataServiceDao using RestClientRetry.withRetryAndErrorHandling()
- Loading branch information
Showing
14 changed files
with
140 additions
and
92 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
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
12 changes: 3 additions & 9 deletions
12
...c/main/java/org/databiosphere/workspacedataservice/leonardo/LeonardoServiceException.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
package org.databiosphere.workspacedataservice.leonardo; | ||
|
||
import java.util.Optional; | ||
import org.broadinstitute.dsde.workbench.client.leonardo.ApiException; | ||
import org.springframework.http.HttpStatus; | ||
import org.databiosphere.workspacedataservice.service.model.exception.RestException; | ||
import org.springframework.web.server.ResponseStatusException; | ||
|
||
public class LeonardoServiceException extends ResponseStatusException { | ||
public LeonardoServiceException(ApiException cause) { | ||
super( | ||
Optional.ofNullable(HttpStatus.resolve(cause.getCode())) | ||
.orElse(HttpStatus.INTERNAL_SERVER_ERROR), | ||
null, | ||
cause); | ||
public LeonardoServiceException(RestException cause) { | ||
super(cause.getStatus(), cause.getMessage(), cause); | ||
} | ||
} |
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
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
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
Oops, something went wrong.