Major update: Fix bug: Rename "new Exception" to "new Error" througout the project.
diff --git a/js/ContentName.js b/js/ContentName.js
index 249cfbe..d0d7711 100644
--- a/js/ContentName.js
+++ b/js/ContentName.js
@@ -89,7 +89,7 @@
ContentName.prototype.to_ccnb = function(/*XMLEncoder*/ encoder) {
if( this.components ==null )
- throw new Exception("CANNOT ENCODE EMPTY CONTENT NAME");
+ throw new Error("CANNOT ENCODE EMPTY CONTENT NAME");
encoder.writeStartElement(this.getElementLabel());
var count = this.components.length;