mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-19 09:47:27 +10:00
[강운덕] [LUCYSUS-1744] mysql interceptor 추가, testcase작성이 가능한 testclassloader 추가.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@569 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.profiler.util;
|
||||
|
||||
public class InterceptorUtils {
|
||||
public static boolean isThrowable(Object result) {
|
||||
if (result instanceof Throwable) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isSuccess(Object result) {
|
||||
return !isThrowable(result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user