com.google.gwt.user.server.rpc.RPC.encodeResponseForFailedRequest()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(282)

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

RPC.encodeResponseForFailedRequest介绍

[英]Returns a string that encodes an exception. If rpcRequest is null a default serialization policy and default request flags will be used. Otherwise these information are taken from rpcRequest.

This method should be used if the RPC request could not be decoded or could not be executed because of an exception thrown, e.g. IncompatibleRemoteServiceException, RpcTokenException
[中]返回对异常进行编码的字符串。如果rpcRequestnull,则将使用默认的序列化策略和默认的请求标志。否则,这些信息来自rpcRequest
如果由于引发异常而无法解码RPC请求或无法执行RPC请求,则应使用此方法,例如不兼容的RemoteServiceException、RpcTokenException

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

"An IncompatibleRemoteServiceException was thrown while processing this call.",
  ex);
return RPC.encodeResponseForFailedRequest(null, ex);

代码示例来源:origin: com.google.gwt/gwt-servlet

"An IncompatibleRemoteServiceException was thrown while processing this call.",
   ex);
 return RPC.encodeResponseForFailedRequest(rpcRequest, ex);
} catch (RpcTokenException tokenException) {
 log("An RpcTokenException was thrown while processing this call.",
   tokenException);
 return RPC.encodeResponseForFailedRequest(rpcRequest, tokenException);

代码示例来源:origin: net.wetheinter/gwt-user

"An IncompatibleRemoteServiceException was thrown while processing this call.",
  ex);
return RPC.encodeResponseForFailedRequest(null, ex);

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

"An IncompatibleRemoteServiceException was thrown while processing this call.",
  ex);
return RPC.encodeResponseForFailedRequest(null, ex);

代码示例来源:origin: net.wetheinter/gwt-user

"An IncompatibleRemoteServiceException was thrown while processing this call.",
   ex);
 return RPC.encodeResponseForFailedRequest(rpcRequest, ex);
} catch (RpcTokenException tokenException) {
 log("An RpcTokenException was thrown while processing this call.",
   tokenException);
 return RPC.encodeResponseForFailedRequest(rpcRequest, tokenException);

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

"An IncompatibleRemoteServiceException was thrown while processing this call.",
   ex);
 return RPC.encodeResponseForFailedRequest(rpcRequest, ex);
} catch (RpcTokenException tokenException) {
 log("An RpcTokenException was thrown while processing this call.",
   tokenException);
 return RPC.encodeResponseForFailedRequest(rpcRequest, tokenException);

相关文章