Author: Lars Michelsen <[email protected]>
Date: Sun Sep 4 14:33:15 2011 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sun Sep 4 14:33:15 2011 +0200
Fixed ajax php error handling #2
---
share/server/core/classes/CoreExceptions.php | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/share/server/core/classes/CoreExceptions.php
b/share/server/core/classes/CoreExceptions.php
index 3bd90dd..cbe9ade 100644
--- a/share/server/core/classes/CoreExceptions.php
+++ b/share/server/core/classes/CoreExceptions.php
@@ -81,3 +81,13 @@ class MapCfgInvalidObject extends MapCfgInvalid {}
class UserInputError extends NagVisException {}
class InputErrorRedirect extends NagVisException {}
+
+// This exception is used to handle PHP errors
+class NagVisErrorException extends ErrorException {
+ function __toString() {
+ return "Error: (".$this->getCode().") ".$this->getMessage()
+ . " (".$this->getFile().":".$this->getLine().")<br /><br />\n"
+ . "<code>".str_replace("\n", "<br />\n",
$this->getTraceAsString())."</code>";
+
+ }
+}
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins