marf.util
Class ExceptionUtils

java.lang.Object
  extended by marf.util.ExceptionUtils

public class ExceptionUtils
extends java.lang.Object

Common exception utility methods used by all the branches of the MARF Exceptions hierarchy.

$Id: ExceptionUtils.java,v 1.2 2007/12/15 17:46:07 mokhov Exp $

Since:
0.3.0.6
Version:
$Revision: 1.2 $
Author:
Serguei Mokhov

Constructor Summary
protected ExceptionUtils()
          Allow inheritance, but other than that, no need to instantiate as all methods in here are presumed to be static.
 
Method Summary
static java.lang.String getStackTraceAsString(java.lang.String pstrMessage, java.lang.Exception poException)
          Writes out the stack trace into a string and returns it along with the supplied message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtils

protected ExceptionUtils()
Allow inheritance, but other than that, no need to instantiate as all methods in here are presumed to be static.

Method Detail

getStackTraceAsString

public static java.lang.String getStackTraceAsString(java.lang.String pstrMessage,
                                                     java.lang.Exception poException)
Writes out the stack trace into a string and returns it along with the supplied message.

Parameters:
pstrMessage - custom exception message to prepend to the output
poException -
Returns:
exception message string with a stack trace


SourceForge Logo