com.threerings.presents.client
Class LoggingListener

java.lang.Object
  extended by com.threerings.presents.client.LoggingListener
All Implemented Interfaces:
InvocationService.InvocationListener

public class LoggingListener
extends Object
implements InvocationService.InvocationListener

Implements the basic InvocationService.InvocationListener and logs the failure.


Field Summary
protected  String _errmsg
           
protected  Logger _logger
           
 
Constructor Summary
LoggingListener(Logger log, String errmsg)
          Constructs a listener that will report the supplied error message along with the reason for failure to the supplied log object.
 
Method Summary
 void requestFailed(String reason)
          Called to report request failure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected Logger _logger

_errmsg

protected String _errmsg
Constructor Detail

LoggingListener

public LoggingListener(Logger log,
                       String errmsg)
Constructs a listener that will report the supplied error message along with the reason for failure to the supplied log object.

Method Detail

requestFailed

public void requestFailed(String reason)
Description copied from interface: InvocationService.InvocationListener
Called to report request failure. If the invocation services system detects failure of any kind, it will report it via this callback. Particular services may also make use of this callback to report failures of their own, or they may opt to define more specific failure callbacks.

Specified by:
requestFailed in interface InvocationService.InvocationListener