Skip to main content

All Questions

0 votes
1 answer
123 views

angularjs capture html element and data that triggered an $exceptionHandler error?

My app has a working $exceptionHandler, if an angularJS error occurs, it captures the error and emails the data back to me. But its not capturing the HTML element that triggered the $scope function ...
rolinger's user avatar
  • 3,116
1 vote
0 answers
38 views

angularJs - handling an error and setting property of the child scope

Our application app.js file has several http error interceptors. They have the following line in them: $rootScope.$broadcast("sm:serverError", errors); The serverError directive is added to the ...
Naomi's user avatar
  • 718
0 votes
0 answers
2k views

How to handle Uncaught URIError: URI malformed in angular js?

How to handle this error? I have checked for answers, couldn't find any. Tried $exceptionHandler , but no luck. Error from browser console: Uncaught URIError: URI malformed at ...
Arun Xavier's user avatar
0 votes
1 answer
207 views

AngularJS: $http fire and forget (no $apply)

My custom exception-Handler is sending a logging-event over $http whenever an exception occurs (similar to the example in the docs https://docs.angularjs.org/api/ng/service/$exceptionHandler ). ...
H W's user avatar
  • 2,596
0 votes
1 answer
841 views

Module Exceptions in Angularjs and $exceptionHandler

In the documentation of Angular 1 for $exceptionHandler it says: Any uncaught exception in angular expressions is delegated to this service. https://code.angularjs.org/1.3.20/docs/api/ng/service/$...
Frank Adrian's user avatar
  • 1,234
2 votes
1 answer
224 views

How to catch all errors in a particular Angular service?

I have a few services in angular that are in charge of tracking and counting things. I want to make sure that if there is ever an exception in any of these services it gracefully handled and does not ...
Sina's user avatar
  • 303
0 votes
1 answer
10k views

How to throw custom exception in AngularJS?

I have a exception.js script with the following service: app.service('Exception', function() { this.ArgumentUndefinedException = function (message) { if (!message) { message = "One or ...
kovac's user avatar
  • 5,389
1 vote
2 answers
396 views

Angular - Circular dependency found when using ngNotificationsBar

I try to use ng-notifications-bar module, I have code like this: angular.module('app', [ uiRouter, Common.name, Components.name, angularMaterial, 'ngTable', 'gridster', '...
jcubic's user avatar
  • 66.8k
0 votes
1 answer
20 views

Deleting database entries and AngularJS. Should I throw an exception if an entry can't be deleted?

So I have an AngualrJS application that is acting as a single-page-application (SPA). This SPA is using an existing Rails API to make xhr requests which returns entries from the database as JSON. I ...
Usagi's user avatar
  • 2,946
0 votes
1 answer
169 views

How to stop browser on exception

TLDR: Is there a way to stop execution on exception in the browser? So i have this weird scenario. Im writing a front-end application in Angular2 and i have a Modal with a form in it for adding ...
Kesem David's user avatar
  • 2,245
2 votes
0 answers
496 views

AngularJS $exceptionHandler custom callback in a controller

I am trying to catch exceptions in my AngularJS app. Currently, I override $exceptionHandler to catch exceptions and send it to the server for logging: angular.module('jsDebug', []).factory('$...
Dynameyes's user avatar
  • 495
0 votes
3 answers
185 views

Angular, cannot instantiate module: Uncaught Error: [$injector:modulerr]

I'm keep getting this exception in my console: Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.5.5/$injector/modulerr?p0=mainApp&p1=Error%3A…at%20g%20(http%3A%2F%2Flocalhost%...
Zbarcea Christian's user avatar
0 votes
0 answers
59 views

Angular error handling

I have this code for a token, generated with JWT and returning it to the application if the user is successfully logged. var token = $localStorage.token; var base64Url = token.split('.')[1]; var ...
AndreFontaine's user avatar
0 votes
1 answer
297 views

Simple javascript exception happens 7 times on Angular Controller init when trying to override $exceptionHandler

I have a factory written to override the built in $exceptionHandler because I plan on creating a backend service that I can log to from the frontend. For now though, I just want to catch the ...
Alex Kibler's user avatar
  • 4,974
1 vote
0 answers
55 views

Handle exception in AngularJs

I have added $exceptionHandler app.factory('$exceptionHandler', function () { return function (exception, cause) { alert(exception + cause); }; }); Add I have a ...
RSM's user avatar
  • 433

15 30 50 per page