public class ErrorSupport extends Object
ErrorListener
,
ErrorEvent
Modifier and Type | Field and Description |
---|---|
private List<ErrorListener> |
listeners |
private Object |
source |
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
|
private List<ErrorListener> listeners
public ErrorSupport(Object source)
ErrorSupport
source
- The object which will fire the ErrorEvent
spublic void addErrorListener(ErrorListener listener)
listener
- the listener to addpublic void removeErrorListener(ErrorListener listener)
listener
- the listener to removepublic ErrorListener[] getErrorListeners()
ErrorSupport
object with addErrorListener()
.ErrorListener
s added or an empty array if no listeners have been
added.public void fireErrorEvent(Throwable throwable)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses