Package org.javlo.helper
Class DebugHelper
- java.lang.Object
-
- org.javlo.helper.DebugHelper
-
public class DebugHelper extends Object
- Author:
- pvandermaesen some method for help the debuging
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDebugHelper.AssertExceptionstatic classDebugHelper.StructureException
-
Constructor Summary
Constructors Constructor Description DebugHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckAssert(boolean error, String msg)throw a exception if error throwstatic voidcheckStructure(boolean error, String msg)throw a exception if error throwstatic StringgetCaller()return the caller of the current methodstatic StringgetCaller(int count)static StringgetSpecificCaller(int count)return the caller of the current methodstatic voidmain(String[] args)static voidtest()static voidtest2()static voidupdateLoggerLevel(javax.servlet.ServletContext application)static voidwriteInfo(ContentContext ctx, PrintStream out)
-
-
-
Method Detail
-
checkStructure
public static void checkStructure(boolean error, String msg) throws DebugHelper.StructureExceptionthrow a exception if error throw- Parameters:
error- the error boolean valuemsg- the message- Throws:
DebugHelper.StructureException- if error true
-
checkAssert
public static void checkAssert(boolean error, String msg) throws DebugHelper.AssertExceptionthrow a exception if error throw- Parameters:
error- the error boolean valuemsg- the message- Throws:
DebugHelper.AssertException- if error true
-
writeInfo
public static void writeInfo(ContentContext ctx, PrintStream out)
-
updateLoggerLevel
public static void updateLoggerLevel(javax.servlet.ServletContext application) throws Exception- Throws:
Exception
-
getCaller
public static String getCaller()
return the caller of the current method- Returns:
-
getSpecificCaller
public static String getSpecificCaller(int count)
return the caller of the current method- Returns:
-
getCaller
public static String getCaller(int count)
-
test
public static void test()
-
test2
public static void test2()
-
main
public static void main(String[] args) throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException, PropertyVetoException, ParseException
-
-