@@ -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 ( ) { } ;
0 commit comments