-
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.
MAT-7233: On non-OK replies from VSAC FHIR Term Serv, parse the Opera…
…tionOutcome Resource and return the diagnostic message to the caller.
- Loading branch information
1 parent
7a283e8
commit 282aa22
Showing
3 changed files
with
72 additions
and
1 deletion.
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
30 changes: 30 additions & 0 deletions
30
src/main/java/gov/cms/madie/terminology/exceptions/VsacValueSetExpansionException.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,30 @@ | ||
package gov.cms.madie.terminology.exceptions; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.springframework.http.HttpStatusCode; | ||
import org.springframework.web.reactive.function.client.WebClientResponseException; | ||
|
||
import java.nio.charset.Charset; | ||
|
||
@Getter | ||
@Setter | ||
public class VsacValueSetExpansionException extends WebClientResponseException { | ||
|
||
private String body; | ||
private String filter; | ||
private String valueSetUrl; | ||
|
||
public VsacValueSetExpansionException( | ||
String message, | ||
HttpStatusCode status, | ||
String statusText, | ||
String body, | ||
String filter, | ||
String valueSetUrl) { | ||
super(message, status, statusText, null, body.getBytes(), Charset.defaultCharset(), null); | ||
this.body = body; | ||
this.filter = filter; | ||
this.valueSetUrl = valueSetUrl; | ||
} | ||
} |
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