org.springframework.ws.transport.WebServiceConnection.getErrorMessage()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.springframework.ws.transport.WebServiceConnection.getErrorMessage()方法的一些代码示例,展示了WebServiceConnection.getErrorMessage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceConnection.getErrorMessage()方法的具体详情如下:
包路径:org.springframework.ws.transport.WebServiceConnection
类名称:WebServiceConnection
方法名:getErrorMessage

WebServiceConnection.getErrorMessage介绍

[英]Returns the error message.
[中]返回错误消息。

代码示例

代码示例来源:origin: mdeinum/spring-utils

@Override
public String getErrorMessage() throws IOException {
  return delegate.getErrorMessage();
}

代码示例来源:origin: org.springframework.ws/spring-ws-core

/**
 * Handles an error on the given connection. The default implementation throws a {@link
 * WebServiceTransportException}.
 *
 * @param connection the erroneous connection
 * @param request     the corresponding request message
 * @return the object to be returned from {@link #sendAndReceive(String,WebServiceMessageCallback,
 *           WebServiceMessageExtractor)}, if any
 */
protected Object handleError(WebServiceConnection connection, WebServiceMessage request) throws IOException {
  if (logger.isDebugEnabled()) {
    logger.debug("Received error for request [" + request + "]");
  }
  throw new WebServiceTransportException(connection.getErrorMessage());
}

代码示例来源:origin: apache/servicemix-bundles

/**
 * Handles an error on the given connection. The default implementation throws a {@link
 * WebServiceTransportException}.
 *
 * @param connection the erroneous connection
 * @param request     the corresponding request message
 * @return the object to be returned from {@link #sendAndReceive(String,WebServiceMessageCallback,
 *           WebServiceMessageExtractor)}, if any
 */
protected Object handleError(WebServiceConnection connection, WebServiceMessage request) throws IOException {
  if (logger.isDebugEnabled()) {
    logger.debug("Received error for request [" + request + "]");
  }
  throw new WebServiceTransportException(connection.getErrorMessage());
}

代码示例来源:origin: org.springframework.ws/org.springframework.ws

/**
 * Handles an error on the given connection. The default implementation throws a {@link
 * WebServiceTransportException}.
 *
 * @param connection the erroneous connection
 * @param request    the corresponding request message
 * @return the object to be returned from {@link #sendAndReceive(String,WebServiceMessageCallback,
 *         WebServiceMessageExtractor)}, if any
 */
protected Object handleError(WebServiceConnection connection, WebServiceMessage request) throws IOException {
  if (logger.isDebugEnabled()) {
    logger.debug("Received error for request [" + request + "]");
  }
  throw new WebServiceTransportException(connection.getErrorMessage());
}

代码示例来源:origin: spring-projects/spring-ws

/**
 * Handles an error on the given connection. The default implementation throws a {@link
 * WebServiceTransportException}.
 *
 * @param connection the erroneous connection
 * @param request     the corresponding request message
 * @return the object to be returned from {@link #sendAndReceive(String,WebServiceMessageCallback,
 *           WebServiceMessageExtractor)}, if any
 */
protected Object handleError(WebServiceConnection connection, WebServiceMessage request) throws IOException {
  if (logger.isDebugEnabled()) {
    logger.debug("Received error for request [" + request + "]");
  }
  throw new WebServiceTransportException(connection.getErrorMessage());
}

相关文章