Location: PHPKode > projects > SimpleQuizzz > Trunk/include/viewerexception.class.php
<?php
/*
	simpleQuizz made Quizzs simple
    Copyright (C) 2008 Mathieu Lory <hide@address.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/**
 * @package    simpleQuizz
 * @subpackage Core
 * @author     Mathieu Lory <hide@address.com>
 */

if (basename($_SERVER["SCRIPT_NAME"])==basename(__FILE__))die();

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class simpleQuizzException extends Exception
{
   public function __construct($text)
   {
   }
   /**
    * @access public
    * @return string
    */
   public function __toString()
   {
      return "[".get_class($this)."] in ". basename($this->file).",{$this->line} - {$this->message}"."\r\n".$this->GetTraceAsString();
   }
}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class DataBaseException extends simpleQuizzException
{}


/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class IdeaException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class IdeasException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class ViewerException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class UserException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class SessionException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class CommentException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class CommentsException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class MailerException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class RateException extends simpleQuizzException
{}

/**
 *
 * @package simpleQuizz
 * 
 * 
 */
class FileException extends simpleQuizzException
{}

?>
Return current item: SimpleQuizzz