Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.client.api
Interface ErrorCallback<T>

All Known Subinterfaces:
RestErrorCallback
All Known Implementing Classes:
AsyncDelegateErrorCallback, BusErrorCallback, DefaultErrorCallback, DefaultRestSecurityErrorCallback

public interface ErrorCallback<T>

Callback interface for failed delivery of specific messages for which an error handler has been provided using the MessageBuilder API.

Errors can also be handled globally by subscribing a regular to the bus topic DefaultErrorCallback.CLIENT_ERROR_SUBJECT.

Author:
Mike Brock

Method Summary
 boolean error(T message, Throwable throwable)
          Called when an error occurs on the bus.
 

Method Detail

error

boolean error(T message,
              Throwable throwable)
Called when an error occurs on the bus.

Parameters:
message - The message or request for which the failure occurred.
throwable - The exception thrown or null if not available
Returns:
boolean indicating whether or not the default error handling should be performed.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.