egroupware/api/src/Exception.php

37 lines
1.1 KiB
PHP
Raw Normal View History

<?php
/**
* EGroupware API - Exceptions
*
* This file defines as set of Exceptions used in eGroupWare.
*
* Applications having the need for further exceptions should extends the from one defined in this file.
*
* @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package api
* @subpackage exception
* @access public
* @version $Id$
*/
namespace EGroupware\Api;
/**
* EGroupware API - Exceptions
*
* All eGroupWare exceptions should extended this class, so we are able to eg. add some logging later.
*
* The messages for most exceptions should be translated and ready to be displayed to the user.
* Only exception to this are exceptions like Exception\AssertionFailed, Exception\WrongParameter
* or Db\Exception, which are suppost to happen only during program development.
*/
class Exception extends \Exception
{
// nothing fancy yet
function __construct($msg=null,$code=100,\Exception $previous=null)
{
return parent::__construct($msg, $code, $previous);
}
}