JAPI 0.9.0
Yet another Java API
API Documentation

net.sf.japi.util
Class PrintStreamThrowableHandler<T extends Throwable>

java.lang.Object
  extended by net.sf.japi.util.PrintStreamThrowableHandler<T>
All Implemented Interfaces:
EventListener, ThrowableHandler<T>

public class PrintStreamThrowableHandler<T extends Throwable>
extends Object
implements ThrowableHandler<T>

A ThrowableHandler that prints exceptions to a defined PrintStream.

Author:
Christian Hujer

Field Summary
static PrintStreamThrowableHandler<Throwable> STDERR
          Static instance for printing to STDERR.
 
Constructor Summary
PrintStreamThrowableHandler(PrintStream stream)
          Private Singleton Constructor.
 
Method Summary
 void handleThrowable(T 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<Throwable> STDERR
Static instance for printing to STDERR.

Constructor Detail

PrintStreamThrowableHandler

public PrintStreamThrowableHandler(PrintStream stream)
Private Singleton Constructor.

Method Detail

handleThrowable

public void handleThrowable(T t)
Handle a Throwable.

Specified by:
handleThrowable in interface ThrowableHandler<T extends Throwable>
Parameters:
t - Throwable to handle

JAPI
Yet another Java API
API Documentation

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