JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app='test'>
    <div ng-controller='testCtrl'>
    </div>
</div>

JavaScript

var mod = angular.module('test', []);
mod.config(function ($provide) {
    $provide.decorator("$exceptionHandler", ['$delegate', '$injector', 		       function ($delegate, $injector) {
       return function (exception, cause) {
              var $http = $injector.get("$http");
               exception.message += ' (caused by "' + cause + '")';
              console.log(exception);
           }
    }]);
  });
mod.controller('testCtrl', function ($scope) {
  });