public class ErrorSupport extends Object
ErrorListener
,
ErrorEvent
Constructor | Description |
---|---|
ErrorSupport(Object source) |
Creates a new instance of
ErrorSupport |
Modifier and Type | Method | Description |
---|---|---|
void |
addErrorListener(ErrorListener listener) |
Add an ErrorListener
|
void |
fireErrorEvent(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(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.Copyright © 2018. All rights reserved.