mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
First public release of MyAAC
This commit is contained in:
36
system/libs/pot/E_OTS_ErrorCode.php
Normal file
36
system/libs/pot/E_OTS_ErrorCode.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**#@+
|
||||
* @version 0.1.2
|
||||
* @since 0.0.6
|
||||
*/
|
||||
|
||||
/**
|
||||
* @package POT
|
||||
* @author Wrzasq <wrzasq@gmail.com>
|
||||
* @copyright 2007 (C) by Wrzasq
|
||||
* @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public License, Version 3
|
||||
*/
|
||||
|
||||
/**
|
||||
* Generic exception class for error codes.
|
||||
*
|
||||
* @package POT
|
||||
*/
|
||||
class E_OTS_ErrorCode extends Exception
|
||||
{
|
||||
/**
|
||||
* Sets error code.
|
||||
*
|
||||
* @param int $code Error code.
|
||||
* @param string $message Optional error message.
|
||||
*/
|
||||
public function __construct($code, $message = '')
|
||||
{
|
||||
parent::__construct($message, $code);
|
||||
}
|
||||
}
|
||||
|
||||
/**#@-*/
|
||||
|
||||
?>
|
Reference in New Issue
Block a user