Major update: Fix bug: Rename "new Exception" to "new Error" througout the project.
diff --git a/js/FaceInstance.js b/js/FaceInstance.js
index 78ac5de..f19d523 100644
--- a/js/FaceInstance.js
+++ b/js/FaceInstance.js
@@ -81,7 +81,7 @@
} else {
- throw new Exception("FaceInstance.decoder. Invalid " +
+ throw new Error("FaceInstance.decoder. Invalid " +
CCNProtocolDTags.tagToString(CCNProtocolDTags.IPProto) + " field: " + pI);
}
@@ -119,8 +119,8 @@
encoder){
//if (!this.validate()) {
- //throw new Exception("Cannot encode : field values missing.");
- //throw new Exception("")
+ //throw new Error("Cannot encode : field values missing.");
+ //throw new Error("")
//}
encoder.writeStartElement(this.getElementLabel());