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 class
DebugHelper.AssertException
static class
DebugHelper.StructureException
-
Constructor Summary
Constructors Constructor Description DebugHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkAssert(boolean error, String msg)
throw a exception if error throwstatic void
checkStructure(boolean error, String msg)
throw a exception if error throwstatic String
getCaller()
return the caller of the current methodstatic String
getCaller(int count)
static String
getSpecificCaller(int count)
return the caller of the current methodstatic void
main(String[] args)
static void
test()
static void
test2()
static void
updateLoggerLevel(javax.servlet.ServletContext application)
static void
writeInfo(ContentContext ctx, PrintStream out)
-
-
-
Method Detail
-
checkStructure
public static void checkStructure(boolean error, String msg) throws DebugHelper.StructureException
throw 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.AssertException
throw 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
-
-