All Questions
29 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 ...
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 ...
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 ...
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 ).
...
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/$...
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 ...
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 ...
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',
'...
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 ...
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 ...
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('$...
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%...
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 ...
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 ...
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 ...