com.gemstone.gemfire.GemFireException.getCause()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(56)

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

GemFireException.getCause介绍

暂无

代码示例

代码示例来源:origin: apache/geode

/**
 * Returns the root cause of this <code>GemFireException</code> or <code>null</code> if the cause
 * is nonexistent or unknown.
 */
public Throwable getRootCause() {
 if (this.getCause() == null) {
  return null;
 }
 Throwable root = this.getCause();
 while (root.getCause() != null) {
  root = root.getCause();
 }
 return root;
}

代码示例来源:origin: io.snappydata/gemfire-core

/**
 * Returns the root cause of this <code>GemFireException</code> or
 * <code>null</code> if the cause is nonexistent or unknown.
 */
public Throwable getRootCause() {
 if ( this.getCause() == null ) {
  return null;
 }
 Throwable root = this.getCause();
 while ( root.getCause() != null ) {
  root = root.getCause();
 }
 return root;
}

代码示例来源:origin: org.apache.geode/gemfire-core

/**
 * Returns the root cause of this <code>GemFireException</code> or
 * <code>null</code> if the cause is nonexistent or unknown.
 */
public Throwable getRootCause() {
 if ( this.getCause() == null ) {
  return null;
 }
 Throwable root = this.getCause();
 while ( root.getCause() != null ) {
  root = root.getCause();
 }
 return root;
}

代码示例来源:origin: org.apache.geode/gemfire-core

private void handleGemFireException(final GemFireException e) {
  String message = LocalizedStrings.AgentLauncher_SERVER_FAILED_TO_START_0.toLocalizedString(e.getMessage());
  if (e.getCause() != null) {
   if (e.getCause().getCause() != null) {
    message += ", " + e.getCause().getCause().getMessage();
   }
  }
  setServerError(null, new Exception(message));
 }
};

代码示例来源:origin: io.snappydata/gemfire-core

private void handleGemFireException(final GemFireException e) {
  String message = LocalizedStrings.AgentLauncher_SERVER_FAILED_TO_START_0.toLocalizedString(e.getMessage());
  if (e.getCause() != null) {
   if (e.getCause().getCause() != null) {
    message += ", " + e.getCause().getCause().getMessage();
   }
  }
  setServerError(null, new Exception(message));
 }
};

代码示例来源:origin: org.apache.geode/gemfire-core

private TransactionException getTransactionException(KeyInfo keyInfo, GemFireException e) {
 if (isRealDealLocal() && !buckets.isEmpty() && !buckets.containsKey(keyInfo.getBucketId())) {
  TransactionException ex = new TransactionDataNotColocatedException(LocalizedStrings.
    PartitionedRegion_KEY_0_NOT_COLOCATED_WITH_TRANSACTION.toLocalizedString(keyInfo.getKey()));
  ex.initCause(e.getCause());
  return ex;
 }
 Throwable ex = e;
 while (ex != null) {
  if (ex instanceof PrimaryBucketException) {
   return new TransactionDataRebalancedException(LocalizedStrings.PartitionedRegion_TRANSACTIONAL_DATA_MOVED_DUE_TO_REBALANCING
     .toLocalizedString());
  }
  ex = ex.getCause();
 }
 return (TransactionException) e;
}

代码示例来源:origin: io.snappydata/snappydata-store-core

if (gfeex.getCause() instanceof ForcedDisconnectException) {
 return StandardException.newException(
   SQLState.GFXD_FORCED_DISCONNECT_EXCEPTION, gfeex);

代码示例来源:origin: io.snappydata/gemfirexd-core

if (gfeex.getCause() instanceof ForcedDisconnectException) {
 return StandardException.newException(
   SQLState.GFXD_FORCED_DISCONNECT_EXCEPTION, gfeex);

代码示例来源:origin: io.snappydata/gemfirexd

if (gfeex.getCause() instanceof ForcedDisconnectException) {
 return StandardException.newException(
   SQLState.GFXD_FORCED_DISCONNECT_EXCEPTION, gfeex);

代码示例来源:origin: io.snappydata/gemfirexd-core

|| gfeex instanceof FunctionExecutionException
  || gfeex.getClass().equals(FunctionException.class))
  && gfeex.getCause() instanceof GemFireException) {
 gfeex = (GemFireException)gfeex.getCause();
   gfeex);
Throwable innerCause = gfeex.getCause();
if (innerCause != null && innerCause instanceof GemFireException) {
 StandardException se = processKnownGemFireException(

代码示例来源:origin: io.snappydata/gemfirexd

|| gfeex instanceof FunctionExecutionException
  || gfeex.getClass().equals(FunctionException.class))
  && gfeex.getCause() instanceof GemFireException) {
 gfeex = (GemFireException)gfeex.getCause();
   gfeex);
Throwable innerCause = gfeex.getCause();
if (innerCause != null && innerCause instanceof GemFireException) {
 StandardException se = processKnownGemFireException(

代码示例来源:origin: io.snappydata/snappydata-store-core

|| gfeex instanceof FunctionExecutionException
  || gfeex.getClass().equals(FunctionException.class))
  && gfeex.getCause() instanceof GemFireException) {
 gfeex = (GemFireException)gfeex.getCause();
   gfeex);
Throwable innerCause = gfeex.getCause();
if (innerCause != null && innerCause instanceof GemFireException) {
 StandardException se = processKnownGemFireException(

相关文章