|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--multex.Msg
Services for low-level reporting of any exception.
The destinations can be of types OutputStream, Writer, String, and StringBuffer.
The exception can be
Exc
)
Failure
)
MsgText.setInternationalization(boolean)
,
or dynamic internationalization by passing the corresponding java.util.ResourceBundle
at each invocation of a get- or print-method.
MulTEx 5: Parameter i_lineSeparator removed from all methods. If you miss this possibility for creating HTML output with <BR> as line separator, then betterly consider enclosing the output with <PRE><FONT FACE="Times"> ... </FONT></PRE> This is a much cheaper way to separate the lines of a message chain or a stack trace.
Field Summary | |
static java.lang.String |
stackTraceFollows
The String used to separate the message chain of an exception from the stack trace of it. |
Method Summary | |
static java.lang.String |
getMessages(java.lang.Throwable i_throwable)
Returns the message texts of i_throwable and its chained causing exceptions. |
static java.lang.String |
getReport(java.lang.Throwable i_throwable)
Returns the report of i_throwable and its chained causing exceptions. |
static java.lang.String |
getStackTrace(java.lang.Throwable i_throwable)
Returns the compactified stack trace of i_throwable and its chained causing Throwable exceptions. |
static void |
printMessages(java.io.PrintStream io_destination,
java.lang.Throwable i_throwable)
Reports the message texts of i_throwable and its chained causing exceptions to io_destination |
static void |
printMessages(java.io.PrintWriter io_destination,
java.lang.Throwable i_throwable)
Reports the message texts of i_throwable and its chained causing exceptions to io_destination |
static void |
printMessages(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable)
Appends the message texts of i_throwable and its chained causing exceptions to io_destination using static internationalization. |
static void |
printMessages(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable,
java.util.ResourceBundle i_resourceBundle)
Prints the message texts of i_throwable and its chained causing exceptions, detail description here. |
static void |
printMessages(java.lang.Throwable i_throwable)
Reports the message texts of i_throwable and its chained causing exceptions to System.err |
static void |
printReport(java.io.PrintStream io_destination,
java.lang.Throwable i_throwable)
Reports i_throwable and its chained causing exceptions to io_destination |
static void |
printReport(java.io.PrintWriter io_destination,
java.lang.Throwable i_throwable)
Reports i_throwable and its chained causing exceptions to io_destination |
static void |
printReport(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable)
Reports i_throwable and its chained causing exceptions to io_destination |
static void |
printReport(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable,
java.util.ResourceBundle i_resourceBundle)
Reports i_throwable and its chained causing exceptions to io_destination, detail description here. |
static void |
printReport(java.lang.Throwable i_throwable)
Reports i_throwable and its chained causing exceptions to System.err |
static void |
printStackTrace(java.io.PrintStream io_destination,
java.lang.Throwable i_throwable)
Prints the compactified stack trace of i_throwable and its chained causing Throwable exceptions to io_destination. |
static void |
printStackTrace(java.io.PrintWriter io_destination,
java.lang.Throwable i_throwable)
Prints the compactified stack trace of i_throwable and its chained causing Throwable exceptions to io_destination. |
static void |
printStackTrace(java.lang.StringBuffer io_destination,
java.lang.Throwable i_throwable)
Prints the compactified stack trace of i_throwable and all its chained causing Throwable exceptions appending it to io_destination, detail description here. |
static void |
printStackTrace(java.lang.Throwable i_throwable)
Prints the compactified stack trace of i_throwable and its chained causing Throwable exceptions to System.err. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String stackTraceFollows
Method Detail |
public static void printReport(java.lang.Throwable i_throwable)
printReport(StringBuffer,Throwable)
public static void printReport(java.io.PrintStream io_destination, java.lang.Throwable i_throwable)
printReport(StringBuffer,Throwable)
public static void printReport(java.io.PrintWriter io_destination, java.lang.Throwable i_throwable)
printReport(StringBuffer,Throwable,ResourceBundle)
public static void printReport(java.lang.StringBuffer io_destination, java.lang.Throwable i_throwable)
printReport(StringBuffer,Throwable,ResourceBundle)
public static void printReport(java.lang.StringBuffer io_destination, java.lang.Throwable i_throwable, java.util.ResourceBundle i_resourceBundle)
printMessages(StringBuffer,Throwable,ResourceBundle)
and the stack trace of i_throwable by
printStackTrace(StringBuffer,Throwable)
.
io_destination
- Where to append the message chain, must not be null.i_throwable
- The exception, which has to be reported along with its causal chain, must not be null.i_resourceBundle
- Where the messsage text patterns and the Locale are taken from.
May be null. See at printMessages(StringBuffer,Throwable,ResourceBundle)
.public static java.lang.String getReport(java.lang.Throwable i_throwable)
printReport(StringBuffer,Throwable)
public static void printMessages(java.lang.Throwable i_throwable)
printMessages(StringBuffer,Throwable)
public static void printMessages(java.io.PrintStream io_destination, java.lang.Throwable i_throwable)
printMessages(StringBuffer,Throwable)
public static void printMessages(java.io.PrintWriter io_destination, java.lang.Throwable i_throwable)
printMessages(StringBuffer,Throwable)
public static java.lang.String getMessages(java.lang.Throwable i_throwable)
printMessages(StringBuffer,Throwable)
public static void printMessages(java.lang.StringBuffer io_destination, java.lang.Throwable i_throwable)
printMessages(StringBuffer,Throwable,ResourceBundle)
public static void printMessages(java.lang.StringBuffer io_destination, java.lang.Throwable i_throwable, java.util.ResourceBundle i_resourceBundle)
Failure
.
Note MulTEx 5: Parameter i_lineSeparator removed. Always uses the platform
default. See discussion in the description of class Msg
.
io_destination
- Where to append the message chain, must not be null.i_throwable
- The exception, which has to be reported along with its causal chain, must not be null.i_resourceBundle
- Where the messsage text patterns are taken from. The Locale
is taken from this i_resourceBundle, too.
If null, falls back to static or no internationalization,
depending on the actual state of @{link MsgText}.public static void printStackTrace(java.lang.Throwable i_throwable)
printStackTrace(StringBuffer,Throwable)
public static void printStackTrace(java.io.PrintStream io_destination, java.lang.Throwable i_throwable)
printStackTrace(StringBuffer,Throwable)
public static void printStackTrace(java.io.PrintWriter io_destination, java.lang.Throwable i_throwable)
printStackTrace(StringBuffer,Throwable)
public static java.lang.String getStackTrace(java.lang.Throwable i_throwable)
printStackTrace(StringBuffer,Throwable)
public static void printStackTrace(java.lang.StringBuffer io_destination, java.lang.Throwable i_throwable)
Msg
.
io_destination
- Where to append the compactified stack trace.i_throwable
- The exception to report, possibly containing a chain of
nested cause exceptions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |