-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix handling unavailable services (#3879)
Signed-off-by: Pavel Jareš <[email protected]> Signed-off-by: ac892247 <[email protected]> Signed-off-by: Pavel Jareš <[email protected]> Co-authored-by: ac892247 <[email protected]>
- Loading branch information
Showing
13 changed files
with
246 additions
and
152 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
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
26 changes: 26 additions & 0 deletions
26
gateway-service/src/main/java/org/zowe/apiml/gateway/filters/ZaasInternalErrorException.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* This program and the accompanying materials are made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Copyright Contributors to the Zowe Project. | ||
*/ | ||
|
||
package org.zowe.apiml.gateway.filters; | ||
|
||
import lombok.Getter; | ||
import org.springframework.cloud.client.ServiceInstance; | ||
|
||
public class ZaasInternalErrorException extends Exception { | ||
|
||
@Getter | ||
private final String instanceId; | ||
|
||
public ZaasInternalErrorException(ServiceInstance zaasInstance, String message) { | ||
super(message); | ||
this.instanceId = zaasInstance.getInstanceId(); | ||
} | ||
|
||
} |
19 changes: 0 additions & 19 deletions
19
...vice/src/main/java/org/zowe/apiml/gateway/service/ZaasServiceIsNotAvailableException.java
This file was deleted.
Oops, something went wrong.
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.