Package org.bremersee.exception
Interface RestApiExceptionParser
- All Known Implementing Classes:
- RestApiExceptionParserImpl
public interface RestApiExceptionParser
A http response parser that creates a 
RestApiException.- Author:
- Christian Bremer
- 
Method SummaryModifier and TypeMethodDescriptionparseException(byte[] response, org.springframework.http.HttpStatusCode httpStatus, org.springframework.http.HttpHeaders headers) Parse exception.default RestApiExceptionparseException(InputStream response, org.springframework.http.HttpStatusCode httpStatus, org.springframework.http.HttpHeaders headers) Parse exception.parseException(String response, org.springframework.http.HttpStatusCode httpStatus, org.springframework.http.HttpHeaders headers) Parse exception.
- 
Method Details- 
parseExceptionRestApiException parseException(String response, org.springframework.http.HttpStatusCode httpStatus, org.springframework.http.HttpHeaders headers) Parse exception.- Parameters:
- response- the response
- httpStatus- the http status
- headers- the headers
- Returns:
- the parsed exception
 
- 
parseExceptionRestApiException parseException(byte[] response, org.springframework.http.HttpStatusCode httpStatus, org.springframework.http.HttpHeaders headers) Parse exception.- Parameters:
- response- the response
- httpStatus- the http status
- headers- the headers
- Returns:
- the parsed exception
 
- 
parseExceptiondefault RestApiException parseException(InputStream response, org.springframework.http.HttpStatusCode httpStatus, org.springframework.http.HttpHeaders headers) throws IOException Parse exception.- Parameters:
- response- the response
- httpStatus- the http status
- headers- the headers
- Returns:
- the rest api exception
- Throws:
- IOException- the io exception
 
 
-