public class ErrorSupport
extends java.lang.Object
ErrorListener,
ErrorEvent| Constructor and Description |
|---|
ErrorSupport(java.lang.Object source)
Creates a new instance of
ErrorSupport |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorListener(ErrorListener listener)
Add an ErrorListener
|
void |
fireErrorEvent(java.lang.Throwable throwable)
Report that an error has occured
|
ErrorListener[] |
getErrorListeners()
Returns an array of all the listeners which were added to the
ErrorSupport object with addErrorListener(). |
void |
removeErrorListener(ErrorListener listener)
Remove an error listener
|
public ErrorSupport(java.lang.Object source)
ErrorSupportsource - The object which will fire the ErrorEventspublic void addErrorListener(ErrorListener listener)
listener - the listener to addpublic void removeErrorListener(ErrorListener listener)
listener - the listener to removepublic ErrorListener[] getErrorListeners()
ErrorSupport object with addErrorListener().ErrorListeners added or an empty array if no listeners have been
added.public void fireErrorEvent(java.lang.Throwable throwable)
throwable - The Error or Exception which occured.