SAPO.Exception->log
This method will send an error object or string to SAPO's Webservices plataform.
Syntax
var exception = new SAPO.Exception('SAPO::Communication.Syndication');
exception.log('Missed URL', 'methodName');
or
var exception = new SAPO.Exception('SAPO::Communication.Syndication');
try {
// do something here
} catch(e) {
exception.log(e, 'init');
}
Compatibility
| All browsers | Yes |
Depends
Input Parameters
- (object or string) error : The error object or string to be logged
- string method : (Optional) Method name if want to log it. Will be concatenated to class name.
Community feedback