primo commit
This commit is contained in:
15
libraries/fof40/Model/DataModel/Exception/BaseException.php
Normal file
15
libraries/fof40/Model/DataModel/Exception/BaseException.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
class BaseException extends \RuntimeException
|
||||
{
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class CannotLockNotLoadedRecord extends BaseException
|
||||
{
|
||||
public function __construct( $message = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
if (empty($message))
|
||||
{
|
||||
$message = Text::_('LIB_FOF40_MODEL_ERR_CANNOTLOCKNOTLOADEDRECORD');
|
||||
}
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
class InvalidSearchMethod extends BaseException
|
||||
{
|
||||
|
||||
}
|
||||
27
libraries/fof40/Model/DataModel/Exception/NoAssetKey.php
Normal file
27
libraries/fof40/Model/DataModel/Exception/NoAssetKey.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class NoAssetKey extends \UnexpectedValueException
|
||||
{
|
||||
public function __construct( $message = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
if (empty($message))
|
||||
{
|
||||
$message = Text::_('LIB_FOF40_MODEL_ERR_NOASSETKEY');
|
||||
}
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
24
libraries/fof40/Model/DataModel/Exception/NoContentType.php
Normal file
24
libraries/fof40/Model/DataModel/Exception/NoContentType.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class NoContentType extends \UnexpectedValueException
|
||||
{
|
||||
public function __construct( $className, $code = 500, Exception $previous = null )
|
||||
{
|
||||
$message = Text::sprintf('LIB_FOF40_MODEL_ERR_NOCONTENTTYPE', $className);
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
24
libraries/fof40/Model/DataModel/Exception/NoItemsFound.php
Normal file
24
libraries/fof40/Model/DataModel/Exception/NoItemsFound.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class NoItemsFound extends BaseException
|
||||
{
|
||||
public function __construct( $className, $code = 404, Exception $previous = null )
|
||||
{
|
||||
$message = Text::sprintf('LIB_FOF40_MODEL_ERR_NOITEMSFOUND', $className);
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
15
libraries/fof40/Model/DataModel/Exception/NoTableColumns.php
Normal file
15
libraries/fof40/Model/DataModel/Exception/NoTableColumns.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
class NoTableColumns extends BaseException
|
||||
{
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class RecordNotLoaded extends BaseException
|
||||
{
|
||||
public function __construct( $message = "", $code = 404, Exception $previous = null )
|
||||
{
|
||||
if (empty($message))
|
||||
{
|
||||
$message = Text::_('LIB_FOF40_MODEL_ERR_COULDNOTLOAD');
|
||||
}
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
class SpecialColumnMissing extends BaseException
|
||||
{
|
||||
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeIncompatibleTable extends \UnexpectedValueException
|
||||
{
|
||||
public function __construct( $tableName, $code = 500, Exception $previous = null )
|
||||
{
|
||||
$message = Text::sprintf('LIB_FOF40_MODEL_ERR_TREE_INCOMPATIBLETABLE', $tableName);
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
|
||||
abstract class TreeInvalidLftRgt extends \RuntimeException
|
||||
{
|
||||
public function __construct( $message = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeInvalidLftRgtCurrent extends TreeInvalidLftRgt
|
||||
{
|
||||
public function __construct( $message = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
if (empty($message))
|
||||
{
|
||||
$message = Text::_('LIB_FOF40_MODEL_ERR_TREE_INVALIDLFTRGT_CURRENT');
|
||||
}
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeInvalidLftRgtOther extends TreeInvalidLftRgt
|
||||
{
|
||||
public function __construct( $message = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
if (empty($message))
|
||||
{
|
||||
$message = Text::_('LIB_FOF40_MODEL_ERR_TREE_INVALIDLFTRGT_OTHER');
|
||||
}
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeInvalidLftRgtParent extends TreeInvalidLftRgt
|
||||
{
|
||||
public function __construct( $message = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
if (empty($message))
|
||||
{
|
||||
$message = Text::_('LIB_FOF40_MODEL_ERR_TREE_INVALIDLFTRGT_PARENT');
|
||||
}
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeInvalidLftRgtSibling extends TreeInvalidLftRgt
|
||||
{
|
||||
public function __construct( $message = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
if (empty($message))
|
||||
{
|
||||
$message = Text::_('LIB_FOF40_MODEL_ERR_TREE_INVALIDLFTRGT_SIBLING');
|
||||
}
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeMethodOnlyAllowedInRoot extends \RuntimeException
|
||||
{
|
||||
public function __construct( $method = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
$message = Text::sprintf('LIB_FOF40_MODEL_ERR_TREE_ONLYINROOT', $method);
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeRootNotFound extends \RuntimeException
|
||||
{
|
||||
public function __construct($tableName, $lft, $code = 500, Exception $previous = null)
|
||||
{
|
||||
$message = Text::sprintf('LIB_FOF40_MODEL_ERR_TREE_ROOTNOTFOUND', $tableName, $lft);
|
||||
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeUnexpectedPrimaryKey extends \UnexpectedValueException
|
||||
{
|
||||
public function __construct( $message = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
if (empty($message))
|
||||
{
|
||||
$message = Text::_('LIB_FOF40_MODEL_ERR_TREE_UNEXPECTEDPK');
|
||||
}
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package FOF
|
||||
* @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd
|
||||
* @license GNU General Public License version 3, or later
|
||||
*/
|
||||
|
||||
namespace FOF40\Model\DataModel\Exception;
|
||||
|
||||
defined('_JEXEC') || die;
|
||||
|
||||
use Exception;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
class TreeUnsupportedMethod extends \LogicException
|
||||
{
|
||||
public function __construct( $method = '', $code = 500, Exception $previous = null )
|
||||
{
|
||||
$message = Text::sprintf('LIB_FOF40_MODEL_ERR_TREE_UNSUPPORTEDMETHOD', $method);
|
||||
|
||||
parent::__construct( $message, $code, $previous );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user