@Component public class ErrorBuildingService extends Object
| Constructor and Description |
|---|
ErrorBuildingService() |
| Modifier and Type | Method and Description |
|---|---|
ErrorType |
buildErrorType() |
void |
buildFormatErrorResponse(javax.servlet.http.HttpServletResponse response,
MessageError messageError)
Builds and inserts text representation of MessageError with HTTP code 400 into HTTP response.
|
void |
buildPaymentErrorResponse(javax.servlet.http.HttpServletResponse response,
MessageError messageError)
Builds and inserts text representation of MessageError with definite HTTP code into HTTP response.
|
void |
enrichMessageError(MessageError messageError,
MessageError validationMessageError) |
void |
enrichMessageError(MessageError messageError,
TppMessageInformation tppMessageInformation) |
public void buildFormatErrorResponse(javax.servlet.http.HttpServletResponse response,
MessageError messageError)
throws IOException
response - HttpServletRequest the response to be enrichedmessageError - MessageError instance with text messagesIOException - in case IO operations errorpublic void buildPaymentErrorResponse(javax.servlet.http.HttpServletResponse response,
MessageError messageError)
throws IOException
response - HttpServletRequest the response to be enrichedmessageError - MessageError instance with text messagIOException - in case IO operations errorpublic void enrichMessageError(MessageError messageError, MessageError validationMessageError)
public void enrichMessageError(MessageError messageError, TppMessageInformation tppMessageInformation)
public ErrorType buildErrorType()
Copyright © 2020. All rights reserved.