net.sf.dictccfe.and
Class DictAndActivity.ExcpShower

java.lang.Object
  extended by net.sf.dictccfe.and.DictAndActivity.ExcpShower
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
DictAndActivity

private final class DictAndActivity.ExcpShower
extends java.lang.Object
implements java.lang.Runnable

For showing the given exception from a background thread. Used in connection with the Handler m_handler and background threads in order to show exceptions occuring in the background.

Version:
$Revision$
Author:
Daniel Stoinski

Field Summary
private  android.content.Context m_context
          The context on which to show the dialog with the exception.
private  java.lang.Exception m_excp
          The exception to show.
 
Constructor Summary
DictAndActivity.ExcpShower(android.content.Context aContext)
          Initializes an empty object for the given context.
 
Method Summary
 void run()
          Shows the exception in a separate dialog.
 void setExcp(java.lang.Exception anExcp)
          Sets the exception to show.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_excp

private java.lang.Exception m_excp
The exception to show.


m_context

private android.content.Context m_context
The context on which to show the dialog with the exception.

Constructor Detail

DictAndActivity.ExcpShower

public DictAndActivity.ExcpShower(android.content.Context aContext)
Initializes an empty object for the given context.

Parameters:
aContext - the context on which to show the dialog.
Method Detail

setExcp

public final void setExcp(java.lang.Exception anExcp)
Sets the exception to show.

Parameters:
anExcp - the exception

run

public final void run()
Shows the exception in a separate dialog.

Specified by:
run in interface java.lang.Runnable