/** * Sets the String request payload * * @since 2.8 */ public void setRequestPayloadOnError(String payload) { _requestPayload = (payload == null) ? null : new RequestPayload(payload); }
/** * The method returns the String representation of the request payload if * one was specified for parser that threw this Exception. * * @return request body as String, if payload was specified; `null` otherwise * * @since 2.8 */ public String getRequestPayloadAsString() { return (_requestPayload != null) ? _requestPayload.toString() : null; }
/** * Sets the byte[] request payload and the charset * * @since 2.8 */ public void setRequestPayloadOnError(byte[] payload, String charset) { _requestPayload = (payload == null) ? null : new RequestPayload(payload, charset); }
/** * The method returns the String representation of the request payload if * one was specified for parser that threw this Exception. * * @return request body as String, if payload was specified; `null` otherwise */ public String getRequestPayloadAsString() { return (_requestPayload != null) ? _requestPayload.toString() : null; }
/** * Sets the byte[] request payload and the charset */ public void setRequestPayloadOnError(byte[] payload, String charset) { _requestPayload = (payload == null) ? null : new RequestPayload(payload, charset); }
/** * Overriding the getMessage() to include the request body */ @Override public String getMessage() { String msg = super.getMessage(); if (_requestPayload != null) { msg += "\nRequest payload : " + _requestPayload.toString(); } return msg; } }
/** * Sets the String request payload */ public void setRequestPayloadOnError(String payload) { _requestPayload = (payload == null) ? null : new RequestPayload(payload); }
/** * Overriding the getMessage() to include the request body */ @Override public String getMessage() { String msg = super.getMessage(); if (_requestPayload != null) { msg += "\nRequest payload: " + _requestPayload.toString(); } return msg; } }
/** * Sets the String request payload * * @since 2.8 */ public void setRequestPayloadOnError(String payload) { _requestPayload = (payload == null) ? null : new RequestPayload(payload); }
/** * The method returns the String representation of the request payload if * one was specified for parser that threw this Exception. * * @return request body as String, if payload was specified; `null` otherwise * * @since 2.8 */ public String getRequestPayloadAsString() { return (_requestPayload != null) ? _requestPayload.toString() : null; }
/** * Sets the String request payload * * @since 2.8 */ public void setRequestPayloadOnError(String payload) { _requestPayload = (payload == null) ? null : new RequestPayload(payload); }
/** * The method returns the String representation of the request payload if * one was specified for parser that threw this Exception. * * @return request body as String, if payload was specified; `null` otherwise * * @since 2.8 */ public String getRequestPayloadAsString() { return (_requestPayload != null) ? _requestPayload.toString() : null; }
/** * Sets the byte[] request payload and the charset * * @since 2.8 */ public void setRequestPayloadOnError(byte[] payload, String charset) { _requestPayload = (payload == null) ? null : new RequestPayload(payload, charset); }
/** * Overriding the getMessage() to include the request body */ @Override public String getMessage() { String msg = super.getMessage(); if (_requestPayload != null) { msg += "\nRequest payload : " + _requestPayload.toString(); } return msg; } }
/** * Sets the byte[] request payload and the charset * * @since 2.8 */ public void setRequestPayloadOnError(byte[] payload, String charset) { _requestPayload = (payload == null) ? null : new RequestPayload(payload, charset); }
/** * Overriding the getMessage() to include the request body */ @Override public String getMessage() { String msg = super.getMessage(); if (_requestPayload != null) { msg += "\nRequest payload : " + _requestPayload.toString(); } return msg; } }