igpp.util
Class ExceptionHandler

java.lang.Object
  extended by igpp.util.ExceptionHandler

public class ExceptionHandler
extends Object


Constructor Summary
ExceptionHandler()
           
 
Method Summary
static void main(String[] args)
          Command-line interface
static void printCause(Throwable t)
          Scans the stack of an exception and prints the first line and any line which begins with "Cause".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandler

public ExceptionHandler()
Method Detail

main

public static void main(String[] args)
Command-line interface

Parameters:
args - the arguments passed on the command-line.
Since:
1.0

printCause

public static void printCause(Throwable t)
Scans the stack of an exception and prints the first line and any line which begins with "Cause". This provides an easier to read error message than simply printing the stack.

Parameters:
t - A Throwable containing the stack trace.
Since:
1.0


Copyright © 2008-2009 Regents University of California. All Rights Reserved.