com.enderak.procol.common.util
Class ErrorHandler

java.lang.Object
  |
  +--com.enderak.procol.common.util.ErrorHandler
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ClientErrorHandler

public class ErrorHandler
extends java.lang.Object
implements java.lang.Runnable

Handles error messages

Author:
Justin Dieters

Constructor Summary
ErrorHandler()
          Creates a new error handler
 
Method Summary
 void addErrorMessage(ProColIncomingMessage message)
          Adds and error message to the queue and tells handler there is a message waiting
 void handleMessage(ProColIncomingMessage message)
          Empty, should be overridden by subclasses to actually do something with the error messages
 void run()
          Main processing method for the ErrorHandler object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandler

public ErrorHandler()
Creates a new error handler

Method Detail

addErrorMessage

public void addErrorMessage(ProColIncomingMessage message)
Adds and error message to the queue and tells handler there is a message waiting

Parameters:
message - The message

run

public void run()
Main processing method for the ErrorHandler object

Specified by:
run in interface java.lang.Runnable

handleMessage

public void handleMessage(ProColIncomingMessage message)
Empty, should be overridden by subclasses to actually do something with the error messages

Parameters:
message - The message to handle