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 browsersYes

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

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found