mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 09:16:55 +02:00
[ticket/10631] Simplify exceptions
PHPBB-10631
This commit is contained in:
committed by
Unknown Bliss
parent
89f4cf6a8c
commit
2a7e129291
27
phpBB/includes/extension/exception.php
Normal file
27
phpBB/includes/extension/exception.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package extension
|
||||
* @copyright (c) 2012 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Exception class for metadata
|
||||
*/
|
||||
class phpbb_extension_exception extends UnexpectedValueException
|
||||
{
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getMessage();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user