**/ class twIf_Validator_Error extends Exception { // Name of class where the error was found private $Classname; private $Errors = array (); // {{{ getClass /** * Determine class where this exception was generated * * @access public * @return string **/ public function getClass () { return $this->Classname; } // }}} // {{{ getFields /** * Get Error-Data from validation * * @access public * @return array */ public function getFields () { return $this->Errors; } // }}} // {{{ __construct /** * Constructor of this error-class * * @param string $Message (optional) * @param string $Class (optional) * * @access public * @return void **/ function __construct ($Message = null, $Errors = null, $Class = "") { // Remember our class $this->Classname = (is_object ($Class) ? get_class ($Class) : $Class); $this->Errors = $Errors; // Inherit to parent constructor parent::__construct ($Message, null); } // }}} } ?>