public class DebugHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DebugHelper.AssertException |
static class |
DebugHelper.StructureException |
| Constructor and Description |
|---|
DebugHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAssert(boolean error,
String msg)
throw a exception if error throw
|
static void |
checkStructure(boolean error,
String msg)
throw a exception if error throw
|
static String |
getCaller()
return the caller of the current method
|
static String |
getCaller(int count) |
static void |
updateLoggerLevel(javax.servlet.ServletContext application) |
static void |
writeInfo(ContentContext ctx,
PrintStream out) |
public static void checkStructure(boolean error,
String msg)
throws DebugHelper.StructureException
error - the error boolean valuemsg - the messageDebugHelper.StructureException - if error truepublic static void checkAssert(boolean error,
String msg)
throws DebugHelper.AssertException
error - the error boolean valuemsg - the messageDebugHelper.AssertException - if error truepublic static void writeInfo(ContentContext ctx, PrintStream out)
public static void updateLoggerLevel(javax.servlet.ServletContext application)
throws Exception
Exceptionpublic static String getCaller()
public static String getCaller(int count)
Copyright © 2012-2018. All Rights Reserved.