本文整理了Java中com.gemstone.gemfire.GemFireException.getCause()
方法的一些代码示例,展示了GemFireException.getCause()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GemFireException.getCause()
方法的具体详情如下:
包路径:com.gemstone.gemfire.GemFireException
类名称: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(
内容来源于网络,如有侵权,请联系作者删除!