JAPI 0_6-alpha-2
Yet another Java API
API Documentation

net.sf.japi.util
Class PrintStreamThrowableHandler

java.lang.Object
  extended by net.sf.japi.util.PrintStreamThrowableHandler
All Implemented Interfaces:
ThrowableHandler

public class PrintStreamThrowableHandler
extends Object
implements ThrowableHandler

A ThrowableHandler that prints exceptions to a defined PrintStream.

Author:
Christian Hujer

Field Summary
static PrintStreamThrowableHandler STDERR
          Static instance for printing to STDERR.
 
Constructor Summary
PrintStreamThrowableHandler(PrintStream stream)
          Private Singleton Constructor.
 
Method Summary
 void handleThrowable(Throwable t)
          Handle a Throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STDERR

public static final PrintStreamThrowableHandler STDERR
Static instance for printing to STDERR.

Constructor Detail

PrintStreamThrowableHandler

public PrintStreamThrowableHandler(PrintStream stream)
Private Singleton Constructor.

Method Detail

handleThrowable

public void handleThrowable(Throwable t)
Handle a Throwable.

Specified by:
handleThrowable in interface ThrowableHandler
Parameters:
t - Throwable to handle

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright