org.apache.xmlrpc.common.XmlRpcStreamRequestConfig.isEnabledForExceptions()方法的使用及代码示例

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

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

XmlRpcStreamRequestConfig.isEnabledForExceptions介绍

[英]Returns, whether the response should contain a "faultCause" element in case of errors. The "faultCause" is an exception, which the server has trapped and written into a byte stream as a serializable object.
[中]返回在出现错误时响应是否应包含“faultCause”元素。“faultCause”是一个异常,服务器将其捕获并作为可序列化对象写入字节流。

代码示例

代码示例来源:origin: org.sonatype.sisu/sisu-xmlrpc-common

map.put("faultString", pMessage == null ? "" : pMessage);
if (pThrowable != null  &&  extensions  &&  (pConfig instanceof XmlRpcStreamRequestConfig)  &&
    ((XmlRpcStreamRequestConfig) pConfig).isEnabledForExceptions()) {
  try {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();

代码示例来源:origin: org.apache.xmlrpc/xmlrpc-common

map.put("faultString", pMessage == null ? "" : pMessage);
if (pThrowable != null  &&  extensions  &&  (pConfig instanceof XmlRpcStreamRequestConfig)  &&
    ((XmlRpcStreamRequestConfig) pConfig).isEnabledForExceptions()) {
  try {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();

代码示例来源:origin: rosjava/rosjava_core

map.put("faultString", pMessage == null ? "" : pMessage);
if (pThrowable != null  &&  extensions  &&  (pConfig instanceof XmlRpcStreamRequestConfig)  &&
    ((XmlRpcStreamRequestConfig) pConfig).isEnabledForExceptions()) {
  try {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();

相关文章