本文整理汇总了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;
}