org.cruxframework.crux.core.client.errors
Interface ErrorHandler

All Known Implementing Classes:
ErrorHandlerImpl

public interface ErrorHandler

An ErrorHandler is called to report errors in application code (bad use of the framework, or an uncaught exception).

To specify your own ErrorHandler, configure in your application module descriptor something like:

 <replace-with class="YourErrorHandlerClass">
     <when-type-assignable class="org.cruxframework.crux.core.client.errors.ErrorHandler" />
 </replace-with>
 

Author:
Thiago da Rosa de Bustamante

Method Summary
 void handleError(String errorMessage)
          Handle an error on application
 void handleError(String errorMessage, Throwable t)
          Handle an error on application
 void handleError(Throwable t)
          Handle an error on application
 void handleError(Throwable t, boolean uncaught)
          Handle an error on application
 

Method Detail

handleError

void handleError(String errorMessage)
Handle an error on application

Parameters:
errorMessage - The error message

handleError

void handleError(Throwable t)
Handle an error on application

Parameters:
t - The exception

handleError

void handleError(Throwable t,
                 boolean uncaught)
Handle an error on application

Parameters:
t - The exception
uncaught - True if it is an uncaught exception

handleError

void handleError(String errorMessage,
                 Throwable t)
Handle an error on application

Parameters:
errorMessage - The error message
t - The exception


Copyright © 2014. All rights reserved.