JS library_callback - gd-99/symbiogd GitHub Wiki
Creates an instance of Webos.Callback, containing a callback function which will be called in case of success and onther one which will be called if an error happens.
Since [1.0 alpha 1](../releases/tag/1.0 alpha 1).
Methods
This class hasn't any method.
Static methods
- [Webos.Callback](JS library_callback) Webos.Callback.toCallback(The, Callback) : Convert a variable to a Webos.Callback object.
- arg The value which will be converted.
- [replacement] Callback functions if some of the first argument are missing. If it is not a Webos.Callback object, it will be converted.
- Boolean undefined.isSuccess() : Check if the result is a success.
- Object undefined.getData() : Get this result's data.
- [Webos.Error](JS library_error) undefined.getError([msg]) : Get the error, if there is one.
- String [msg] An error message can be provided.
- undefined.triggerError() : Trigger the error if the result is not a success.
- undefined.logError([msg]) : Log the error, if there is one.
- String [msg] An error message can be provided.