Package org.bremersee.exception
Class MessageExceptionParser
- java.lang.Object
-
- org.bremersee.exception.MessageExceptionParser
-
- All Implemented Interfaces:
ExceptionParser<String>
public class MessageExceptionParser extends Object implements ExceptionParser<String>
The message aware exception parser.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description MessageExceptionParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
parseException(String response, Map<String,? extends Collection<String>> headers)
Parse exception.
-
-
-
Method Detail
-
parseException
public String parseException(String response, Map<String,? extends Collection<String>> headers)
Description copied from interface:ExceptionParser
Parse exception.- Specified by:
parseException
in interfaceExceptionParser<String>
- Parameters:
response
- the responseheaders
- the headers- Returns:
- the parsed exception
-
-