onError(callback)
Class: SwingUI.
Description:
Sets a custom Error handler when error events come if from GUI. Event object has a "e.message" parameter, and
may have "e.target" that references a component related to the error.
e:{
message (always)
target: (when component is related to the error)
}
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
function |
Function to be called instead of default error handling. |
Returns:
Returns this instance of SwingUI class.
Type: SwingUI
