Log an Exception from API calling in widget

Hi All,

I'm calling an API from widgets that API return 500 error I want to log an exception in Administration -> Monitoring -> Exceptions

Calling this-

 jQuery.telligent.evolution.get{

 error: function (xhr, desc, ex)
   {

     //log an exception here
     alert(ex);
  }

}

Please let me know how can I achieve this.

Parents Reply Children
No Data