public class ErrorSupport extends Object
ErrorListener,
ErrorEvent| Constructor and Description |
|---|
ErrorSupport(Object source)
Creates a new instance of
ErrorSupport |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorListener(ErrorListener listener)
Add an ErrorListener
|
void |
fireErrorEvent(Throwable throwable)
Report that an error has occurred
|
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(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.Copyright © 2017. All Rights Reserved.