aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--js/Color.js2
-rw-r--r--js/RrdGraph.js7
-rw-r--r--js/RrdRpn.js2
-rw-r--r--js/RrdTime.js2
4 files changed, 7 insertions, 6 deletions
diff --git a/js/Color.js b/js/Color.js
index e294f65..066e1a1 100644
--- a/js/Color.js
+++ b/js/Color.js
@@ -24,10 +24,10 @@
24 */ 24 */
25var ColorError = function (message) 25var ColorError = function (message)
26{ 26{
27 this.prototype = Error.prototype;
28 this.name = "ColorError"; 27 this.name = "ColorError";
29 this.message = (message) ? message : "Error"; 28 this.message = (message) ? message : "Error";
30}; 29};
30ColorError.prototype = new Error();
31 31
32/** 32/**
33 * Color 33 * Color
diff --git a/js/RrdGraph.js b/js/RrdGraph.js
index 48b9814..a3b0124 100644
--- a/js/RrdGraph.js
+++ b/js/RrdGraph.js
@@ -27,10 +27,10 @@
27 */ 27 */
28var RrdGraphDescError = function (message) 28var RrdGraphDescError = function (message)
29{ 29{
30 this.prototype = Error.prototype;
31 this.name = "RrdGraphDescError"; 30 this.name = "RrdGraphDescError";
32 this.message = (message) ? message : "Error"; 31 this.message = (message) ? message : "Error";
33}; 32};
33RrdGraphDescError.prototype = new Error();
34 34
35/** 35/**
36 * RrdGraphDesc 36 * RrdGraphDesc
@@ -393,10 +393,11 @@ RrdGraphDesc.prototype.hrule = function (graph, value, color, legend)
393 */ 393 */
394var RrdVdefError = function (message) 394var RrdVdefError = function (message)
395{ 395{
396 this.prototype = Error.prototype;
397 this.name = "RrdVdefError"; 396 this.name = "RrdVdefError";
398 this.message = (message) ? message : "Error"; 397 this.message = (message) ? message : "Error";
399}; 398};
399RrdVdefError.prototype = new Error();
400
400 401
401/** 402/**
402 * RrdVdef 403 * RrdVdef
@@ -694,10 +695,10 @@ RrdVdef.prototype.calc = function(src)
694 */ 695 */
695var RrdGraphError = function (message) 696var RrdGraphError = function (message)
696{ 697{
697 this.prototype = Error.prototype;
698 this.name = "RrdGraphError"; 698 this.name = "RrdGraphError";
699 this.message = (message) ? message : "Error"; 699 this.message = (message) ? message : "Error";
700}; 700};
701RrdGraphError.prototype = new Error();
701 702
702/** 703/**
703 * RrdGraph 704 * RrdGraph
diff --git a/js/RrdRpn.js b/js/RrdRpn.js
index 5ca8daf..3eb4e4a 100644
--- a/js/RrdRpn.js
+++ b/js/RrdRpn.js
@@ -27,10 +27,10 @@
27 */ 27 */
28var RrdRpnError = function (message) 28var RrdRpnError = function (message)
29{ 29{
30 this.prototype = Error.prototype;
31 this.name = "RrdRpnError"; 30 this.name = "RrdRpnError";
32 this.message = (message) ? message : "RPN stack underflow"; 31 this.message = (message) ? message : "RPN stack underflow";
33}; 32};
33RrdRpnError.prototype = new Error();
34 34
35/** 35/**
36 * RrdRpn 36 * RrdRpn
diff --git a/js/RrdTime.js b/js/RrdTime.js
index c1de1fc..9010ece 100644
--- a/js/RrdTime.js
+++ b/js/RrdTime.js
@@ -27,10 +27,10 @@
27 */ 27 */
28var RrdTimeError = function (message) 28var RrdTimeError = function (message)
29{ 29{
30 this.prototype = Error.prototype;
31 this.name = "RrdTimeError"; 30 this.name = "RrdTimeError";
32 this.message = (message) ? message : "Error"; 31 this.message = (message) ? message : "Error";
33}; 32};
33RrdTimeError.prototype = new Error();
34 34
35/** 35/**
36 * RrdTime 36 * RrdTime