本文整理匯總了Java中gov.nih.nci.cagrid.common.FaultHelper.getMessage方法的典型用法代碼示例。如果您正苦於以下問題:Java FaultHelper.getMessage方法的具體用法?Java FaultHelper.getMessage怎麽用?Java FaultHelper.getMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類gov.nih.nci.cagrid.common.FaultHelper
的用法示例。
在下文中一共展示了FaultHelper.getMessage方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isAccessDenied
import gov.nih.nci.cagrid.common.FaultHelper; //導入方法依賴的package包/類
private boolean isAccessDenied(Exception ex) {
Throwable cause = ex;
Set<Throwable> seenCauses = new HashSet<Throwable>();
boolean isDenied = false;
while (cause != null && !seenCauses.contains(cause) && !isDenied) {
String message = cause.getMessage();
if (cause instanceof BaseFaultType) {
message = FaultHelper.getMessage(cause);
}
if (message.contains(ACCESS_DENIED_MESSAGE)) {
isDenied = true;
}
seenCauses.add(cause);
cause = cause.getCause();
}
return isDenied;
}
示例2: isSpringJava6Error
import gov.nih.nci.cagrid.common.FaultHelper; //導入方法依賴的package包/類
protected boolean isSpringJava6Error(Exception ex) {
Throwable cause = ex;
while (cause != null) {
String message = cause.getMessage();
if (cause instanceof BaseFaultType) {
message = FaultHelper.getMessage(cause);
}
if (message != null) {
for (String findme : InvokeDataServiceStep.JDK6_SPRING_ERROR_MESSAGES) {
if (message.contains(findme)) {
return true;
}
}
}
cause = cause.getCause();
}
return false;
}
示例3: isSpringJava6Error
import gov.nih.nci.cagrid.common.FaultHelper; //導入方法依賴的package包/類
protected boolean isSpringJava6Error(Exception ex) {
Throwable cause = ex;
while (cause != null) {
String message = cause.getMessage();
if (cause instanceof BaseFaultType) {
message = FaultHelper.getMessage(cause);
}
if (message != null) {
for (String findme : JDK6_SPRING_ERROR_MESSAGES) {
if (message.contains(findme)) {
return true;
}
}
}
cause = cause.getCause();
}
return false;
}
示例4: isJava6CSMError
import gov.nih.nci.cagrid.common.FaultHelper; //導入方法依賴的package包/類
private boolean isJava6CSMError(Exception ex) {
boolean yep = false;
if (isJava6()) {
String message = FaultHelper.getMessage(ex);
yep = message.contains("CSException occured");
}
return yep;
}