From 1dd4553cc92cd4d533dd149e1a97e21f814c855e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Skej=C3=B8?= Date: Mon, 26 May 2008 09:46:58 +0200 Subject: [PATCH] Error code is called ecode now because of naming problems. --- AOOSException.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AOOSException.php b/AOOSException.php index a109c58..77344b3 100644 --- a/AOOSException.php +++ b/AOOSException.php @@ -11,7 +11,7 @@ class AOOSException extends Exception private $_name = null; private $_msg = null; private $_trace = null; - private $_code = null; + private $_ecode = null; public function __construct($core, $name, $msg="", $doTrace=true, $code = 0) { @@ -27,14 +27,14 @@ class AOOSException extends Exception throw new AOOSException($core, $core->tr("exception_code_error")); return false; } - $this->_code = $code; + $this->_ecode = $code; $this->_core->setException($this); } public function __toString() { $str = ""; - switch($this->_code) + switch($this->_ecode) { case(0): $str .= "fatal_error"; @@ -55,7 +55,7 @@ class AOOSException extends Exception { continue; } - $str .= "".$row["class"]."->".$row["class"]." in ".$row["file"]." on line ".$row["line"]; + $str .= "".$row["class"]."->".$row["function"]." in ".$row["file"]." on line ".$row["line"]; } } return $str; @@ -63,7 +63,7 @@ class AOOSException extends Exception public function getName() { return $this->_name; } public function getMsg() { return $this->_msg; } + public function getEcode() { return $this->_ecode; } /* public function getTrace() { return $this->_trace; }*/ - /* public function getCode() { return $this->_code; }*/ } ?> -- 2.11.4.GIT