javax.net.ssl.SSLException.getLocalizedMessage()方法的使用及代码示例

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

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

SSLException.getLocalizedMessage介绍

暂无

代码示例

代码示例来源:origin: oci-pronghorn/Pronghorn

static void manageException(SSLException sslex, BaseConnection cc, boolean isServer) {
  try {
    cc.close();
  } catch (Throwable t) {
    //ignore we are closing this connection
  }
  logger.error("Exception, in SERVER:{} '{}'",isServer, sslex.getLocalizedMessage(), sslex);
}

代码示例来源:origin: oci-pronghorn/Pronghorn

cc.close();
if (cc instanceof ClientConnection) {
  logger.warn("\n{}\nServer has sent corrupt TLS information, connection {} has been closed (A)",sslex.getLocalizedMessage(),cc);							
} else {							
  logger.warn("\n{}\nClient has sent corrupt TLS information, connection {} has been closed (A)",sslex.getLocalizedMessage(),cc);

代码示例来源:origin: andresth/Kandroid

e.printStackTrace();
try {
  responseList.add(new JSONObject("{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-40,\"message\":\"" + e.getLocalizedMessage() + "\"},\"id\":null}"));
} catch (JSONException e1) {
  e1.printStackTrace();

代码示例来源:origin: chatty/chatty

warning("SSL Error reading from socket: "+ex);
  disconnectReason = SSL_ERROR;
  disconnectMessage = ex.getLocalizedMessage();
  break;
} catch (IOException ex) {

代码示例来源:origin: oci-pronghorn/Pronghorn

workspace[1].clear();
    if (isServer) {
      logger.warn("\n{}\nClient has sent corrupt TLS information, connection {} has been closed (B)",sslex.getLocalizedMessage(),cc);							
    } else {							
      logger.warn("\n{}\nServer has sent corrupt TLS information, connection {} has been closed (B)",sslex.getLocalizedMessage(),cc);							
  logger.warn("\n{}\nClient has sent corrupt TLS information, connection {} has been closed (C)",sslex.getLocalizedMessage(),cc,sslex);							
} else {
    cc.close();
  logger.warn("\n{}\nServer has sent corrupt TLS information, connection {} has been closed (C)",sslex.getLocalizedMessage(),cc);

相关文章