public final class ErrorQueue extends Object implements ErrorHandler
ErrorHandler
that queues up its errors when a delegate
ErrorHandler
is not available, and passes the errors
on when a delegate is available.Constructor and Description |
---|
ErrorQueue() |
Modifier and Type | Method and Description |
---|---|
void |
handleErrorMessage(String errorMessage)
Method that handles error messages.
|
void |
handleErrorMessage(String errorMessage,
String title)
Method that handles error messages.
|
void |
handleException(Throwable throwable)
Method that handles exceptions.
|
void |
handleException(Throwable throwable,
String title)
Method that handles exceptions.
|
void |
handleInformationMessage(String informationMessage)
Method that handles information messages.
|
void |
setErrorHandler(ErrorHandler errorHandler)
Set the delegate error handler.
|
public void setErrorHandler(ErrorHandler errorHandler)
errorHandler
- Where to report errors.public void handleErrorMessage(String errorMessage)
handleErrorMessage
in interface ErrorHandler
errorMessage
- The error message.ErrorHandler.handleErrorMessage(String, String)
,
ErrorHandler.handleInformationMessage(String)
public void handleErrorMessage(String errorMessage, String title)
handleErrorMessage
in interface ErrorHandler
errorMessage
- The error message.title
- A title to use.ErrorHandler.handleErrorMessage(String)
public void handleException(Throwable throwable)
handleException
in interface ErrorHandler
throwable
- The exception.public void handleException(Throwable throwable, String title)
handleException
in interface ErrorHandler
throwable
- The exception.title
- A title to use.public void handleInformationMessage(String informationMessage)
handleInformationMessage
in interface ErrorHandler
informationMessage
- The information message.ErrorHandler.handleErrorMessage(String)
Copyright © 2000-2014. All Rights Reserved.