code = 500; $this->_id = $id; $args = func_get_args(); array_shift($args); $this->_args = $args; IMuTrace::write(2, 'exception: %s', $this->__toString()); } /* Properties */ public function getArgs() { return $this->_args; } public function getID() { return $this->_id; } public function setArgs($args) { $this->_args = $args; } public function setCode($code) { $this->code = $code; } public function setSystem($system) { $this->_system = $system; } /* Methods */ public function __toString() { $str = $this->_id; if ($this->_args != null && count($this->_args) > 0) $str .= ' (' . implode(',', $this->_args) . ')'; $str .= ' [' . $this->getCode() . ']'; if (isset($this->_system)) $str .= ': ' . $this->_system; return $str; } private $_id; private $_args; private $_system; } ?>