public class Warning
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
Warning.MyWarningException |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SUPPRESSION_NUMBER |
| Constructor and Description |
|---|
Warning(java.lang.String warning)
Default warning: Print warning message at most 5 times.
|
Warning(java.lang.String warning,
boolean showstack,
int suppressat)
The location of the error will be reported as the code location where
this warning is placed.
|
Warning(java.lang.String pWarning,
java.lang.Exception err) |
Warning(java.lang.String pWarning,
java.lang.Exception err,
boolean pShowStack,
int pSuppressAt)
Note that this is not useful if you are converting an exception into a
warning.
|
| Modifier and Type | Method and Description |
|---|---|
void |
makeWarning(java.lang.String pWarning,
java.lang.Exception e,
boolean pDumpStack,
int pSuppressAt)
Add warning to static hashtable used to keep track of all warnings issued
so far.
|
public static final int DEFAULT_SUPPRESSION_NUMBER
public Warning(java.lang.String warning)
public Warning(java.lang.String warning,
boolean showstack,
int suppressat)
warning - is the message to be shownshowstack - is true if you want to show a stack dump as well. Then, stack
dump will be made for location where WARNING occurssuppressat - is the maximum number of this warning you want to appearpublic Warning(java.lang.String pWarning,
java.lang.Exception err)
public Warning(java.lang.String pWarning,
java.lang.Exception err,
boolean pShowStack,
int pSuppressAt)
pWarning - is the message to be shownerr - is the exception that caused the rise of this warning. this
will be used to inform the user about where the problem
occured.pShowStack - is true if you want to show a stack dump as well. If set,
stack dump will be made for location where WARNING occurs.pSuppressAt - is the maximum number of this warning you want to appearpublic void makeWarning(java.lang.String pWarning,
java.lang.Exception e,
boolean pDumpStack,
int pSuppressAt)
e - is exception that caused the problem. Use null to avoid stack
dump.