Major update: Fix bug: Rename "new Exception" to "new Error" througout the project.
diff --git a/js/SignedInfo.js b/js/SignedInfo.js
index 909545a..f398c4c 100644
--- a/js/SignedInfo.js
+++ b/js/SignedInfo.js
@@ -109,7 +109,7 @@
if (null == this.type) {
- throw new Exception("Cannot parse signedInfo type: bytes.");
+ throw new Error("Cannot parse signedInfo type: bytes.");
}
} else {
@@ -135,7 +135,7 @@
SignedInfo.prototype.to_ccnb = function( encoder) {
if (!this.validate()) {
- throw new Exception("Cannot encode : field values missing.");
+ throw new Error("Cannot encode : field values missing.");
}
encoder.writeStartElement(this.getElementLabel());