Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit bf9763c

Browse files
committed
s/Exception/Error
1 parent 871ea25 commit bf9763c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

angularFire.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function AngularFire($q, $parse, $timeout, ref) {
4141
this._remoteValue = false;
4242

4343
if (typeof ref == "string") {
44-
throw new Exception("Please provide a Firebase reference instead " +
44+
throw new Error("Please provide a Firebase reference instead " +
4545
"of a URL, eg: new Firebase(url)");
4646
}
4747
this._fRef = ref;
@@ -197,7 +197,7 @@ angular.module("firebase").factory("angularFireCollection", ["$timeout",
197197
function($timeout) {
198198
return function(collectionRef, initialCb) {
199199
if (typeof collectionRef == "string") {
200-
throw new Exception("Please provide a Firebase reference instead " +
200+
throw new Error("Please provide a Firebase reference instead " +
201201
"of a URL, eg: new Firebase(url)");
202202
}
203203

@@ -445,7 +445,7 @@ angular.module("firebase").factory("angularFireAuth", [
445445
var self = this;
446446

447447
if (typeof ref == "string") {
448-
throw new Exception("Please provide a Firebase reference instead " +
448+
throw new Error("Please provide a Firebase reference instead " +
449449
"of a URL, eg: new Firebase(url)");
450450
}
451451

@@ -454,12 +454,12 @@ angular.module("firebase").factory("angularFireAuth", [
454454
if (options.scope) {
455455
this._scope = options.scope;
456456
} else {
457-
throw new Exception("Scope not provided to angularFireAuth!");
457+
throw new Error("Scope not provided to angularFireAuth!");
458458
}
459459
if (options.name) {
460460
this._name = options.name;
461461
} else {
462-
throw new Exception("Model name not provided to angularFireAuth!");
462+
throw new Error("Model name not provided to angularFireAuth!");
463463
}
464464

465465
this._cb = function(){};

angularfire.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)