This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
forked from hortonworks/cloudbreak
-
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.
CLOUD-97300 responds with BadRequest when regions could not be querie…
…d from the provider
- Loading branch information
1 parent
82a8ccc
commit fed1663
Showing
5 changed files
with
53 additions
and
18 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
20 changes: 20 additions & 0 deletions
20
...in/java/com/sequenceiq/cloudbreak/controller/mapper/GetCloudParameterExceptionMapper.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,20 @@ | ||
package com.sequenceiq.cloudbreak.controller.mapper; | ||
|
||
import static javax.ws.rs.core.Response.Status.BAD_REQUEST; | ||
|
||
import javax.ws.rs.core.Response; | ||
|
||
import com.sequenceiq.cloudbreak.service.stack.GetCloudParameterException; | ||
|
||
public class GetCloudParameterExceptionMapper extends BaseExceptionMapper<GetCloudParameterException> { | ||
|
||
@Override | ||
Response.Status getResponseStatus() { | ||
return BAD_REQUEST; | ||
} | ||
|
||
@Override | ||
protected boolean logException() { | ||
return false; | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
core/src/main/java/com/sequenceiq/cloudbreak/service/stack/GetCloudParameterException.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,16 @@ | ||
package com.sequenceiq.cloudbreak.service.stack; | ||
|
||
public class GetCloudParameterException extends RuntimeException { | ||
|
||
public GetCloudParameterException(String message) { | ||
super(message); | ||
} | ||
|
||
public GetCloudParameterException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public GetCloudParameterException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |