multex
Class Msg

java.lang.Object
  |
  +--multex.Msg

public class Msg
extends java.lang.Object

Services for reporting onto Streams and Strings the messages for any exception. The exception can be


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)
          Reports 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, 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 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

stackTraceFollows

public static java.lang.String stackTraceFollows
The String used to separate the message chain of an exception from the stack trace of it.

Method Detail

printReport

public static void printReport(java.lang.Throwable i_throwable)
Reports i_throwable and its chained causing exceptions to System.err

See Also:
printReport(StringBuffer,Throwable)

printReport

public static void printReport(java.io.PrintStream io_destination,
                               java.lang.Throwable i_throwable)
Reports i_throwable and its chained causing exceptions to io_destination

See Also:
printReport(StringBuffer,Throwable)

printReport

public static void printReport(java.io.PrintWriter io_destination,
                               java.lang.Throwable i_throwable)
Reports i_throwable and its chained causing exceptions to io_destination

See Also:
printReport(StringBuffer,Throwable)

printReport

public static void printReport(java.lang.StringBuffer io_destination,
                               java.lang.Throwable i_throwable)
Reports i_throwable and its chained causing exceptions to io_destination, detail description here. Reports the message chain of i_throwable by printMessages(StringBuffer,Throwable) and the stack trace of i_throwable by printStackTrace(StringBuffer,Throwable). The report is appended to io_destination.


getReport

public static java.lang.String getReport(java.lang.Throwable i_throwable)
Returns the report of i_throwable and its chained causing exceptions.

See Also:
printReport(StringBuffer,Throwable)

printMessages

public static void printMessages(java.lang.Throwable i_throwable)
Reports the message texts of i_throwable and its chained causing exceptions to System.err

See Also:
printMessages(StringBuffer,Throwable)

printMessages

public 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

See Also:
printMessages(StringBuffer,Throwable)

printMessages

public 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

See Also:
printMessages(StringBuffer,Throwable)

getMessages

public static java.lang.String getMessages(java.lang.Throwable i_throwable)
Returns the message texts of i_throwable and its chained causing exceptions.

See Also:
printMessages(StringBuffer,Throwable)

printMessages

public static void printMessages(java.lang.StringBuffer io_destination,
                                 java.lang.Throwable i_throwable)
Reports the message texts of i_throwable and its chained causing exceptions, detail description here. Reports the paramerized textual message of i_throwable, or if this is not available, the name and parameters of i_throwable. Reports the same for each of the eventually existing chain of causing Throwable exceptions. The report is appended to io_destination. The message texts for the exceptions are taken via MsgText.appendMessageChain(java.lang.StringBuffer, java.lang.Throwable, java.lang.String). The concept of chaining causing exceptions is described in the class Failure.


printStackTrace

public 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.

See Also:
printStackTrace(StringBuffer,Throwable)

printStackTrace

public 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.

See Also:
printStackTrace(StringBuffer,Throwable)

printStackTrace

public 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.

See Also:
printStackTrace(StringBuffer,Throwable)

getStackTrace

public static java.lang.String getStackTrace(java.lang.Throwable i_throwable)
Returns the compactified stack trace of i_throwable and its chained causing Throwable exceptions.

See Also:
printStackTrace(StringBuffer,Throwable)

printStackTrace

public static void printStackTrace(java.lang.StringBuffer io_destination,
                                   java.lang.Throwable i_throwable)
Prints the compactified stack trace of i_throwable and its chained causing Throwable exceptions appending it to io_destination, detail description here. The contents is provided by the method Failure.appendCompactStackTrace(StringBuffer,Throwable,Exception).