@Component public class ResponseErrorMapper extends Object
| Constructor and Description |
|---|
ResponseErrorMapper() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
generateErrorResponse(de.adorsys.psd2.xs2a.core.error.MessageError error)
Generates
ResponseEntity with given error in the body |
org.springframework.http.ResponseEntity |
generateErrorResponse(de.adorsys.psd2.xs2a.core.error.MessageError error,
ResponseHeaders responseHeaders)
Generates
ResponseEntity with given error in the body and response headers |
org.springframework.http.ResponseEntity |
generateServiceUnavailableErrorResponse(String error) |
public org.springframework.http.ResponseEntity generateErrorResponse(de.adorsys.psd2.xs2a.core.error.MessageError error)
ResponseEntity with given error in the bodyerror - error to be returned in the bodypublic org.springframework.http.ResponseEntity generateErrorResponse(de.adorsys.psd2.xs2a.core.error.MessageError error,
ResponseHeaders responseHeaders)
ResponseEntity with given error in the body and response headerserror - error to be returned in the bodyresponseHeaders - headers to be returned in the responsepublic org.springframework.http.ResponseEntity generateServiceUnavailableErrorResponse(String error)
Copyright © 2020. All rights reserved.