Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/Exception.tar
Назад
ExceptionHandler.php 0000604 00000011654 15245530266 0010524 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2012 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Exception; defined('JPATH_PLATFORM') or die; use Joomla\CMS\Document\Document; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\Log\Log; /** * Displays the custom error page when an uncaught exception occurs. * * @since 3.0 */ class ExceptionHandler { /** * Handles exceptions: logs errors and renders error page. * * @param \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page. * * @return void * * @since 3.10.0 */ public static function handleException($error) { if (static::isException($error)) { static::logException($error); } static::render($error); } /** * Render the error page based on an exception. * * @param \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object for which to render the error page. * * @return void * * @since 3.0 */ public static function render($error) { // Render template error page for exceptions only, because template will expect exception object if (static::isException($error)) { try { $app = Factory::getApplication(); // If site is offline and it's a 404 error, just go to index (to see offline message, instead of 404) if ($error->getCode() == '404' && $app->get('offline') == 1) { $app->redirect('index.php'); } $attributes = array( 'charset' => 'utf-8', 'lineend' => 'unix', 'tab' => "\t", 'language' => 'en-GB', 'direction' => 'ltr', ); // If there is a \JLanguage instance in Factory then let's pull the language and direction from its metadata if (Factory::$language) { $attributes['language'] = Factory::getLanguage()->getTag(); $attributes['direction'] = Factory::getLanguage()->isRtl() ? 'rtl' : 'ltr'; } $document = Document::getInstance('error', $attributes); if (!$document) { // We're probably in an CLI environment jexit($error->getMessage()); } // Get the current template from the application $template = $app->getTemplate(); // Push the error object into the document $document->setError($error); // Clear buffered output at all levels while (ob_get_level()) { ob_end_clean(); } // This is needed to ensure the test suite can still get the output buffer ob_start(); $document->setTitle(Text::_('ERROR') . ': ' . $error->getCode()); $data = $document->render( false, array( 'template' => $template, 'directory' => JPATH_THEMES, 'debug' => JDEBUG, ) ); // Do not allow cache $app->allowCache(false); // If nothing was rendered, just use the message from the Exception if (empty($data)) { $data = $error->getMessage(); } $app->setBody($data); echo $app->toString(); $app->close(0); // This return is needed to ensure the test suite does not trigger the non-Exception handling below return; } catch (\Throwable $e) { // Pass the error down } catch (\Exception $e) { // Pass the error down } } // This isn't an Exception, we can't handle it. if (!headers_sent()) { header('HTTP/1.1 500 Internal Server Error'); } $message = 'Error'; if (static::isException($error)) { // Make sure we do not display sensitive data in production environments if (ini_get('display_errors')) { $message .= ': '; if (isset($e)) { $message .= $e->getMessage() . ': '; } $message .= $error->getMessage(); } } echo $message; jexit(1); } /** * Checks if given error belong to PHP exception class (\Throwable for PHP 7+, \Exception for PHP 5-). * * @param mixed $error Any error value. * * @return bool * * @since 3.10.0 */ protected static function isException($error) { $expectedClass = PHP_MAJOR_VERSION >= 7 ? '\Throwable' : '\Exception'; return $error instanceof $expectedClass; } /** * Logs exception, catching all possible errors during logging. * * @param \Exception|\Throwable $error An Exception or Throwable (PHP 7+) object to get error message from. * * @return void * * @since 3.10.0 */ protected static function logException($error) { // Try to log the error, but don't let the logging cause a fatal error try { Log::add( sprintf( 'Uncaught %1$s of type %2$s thrown. Stack trace: %3$s', PHP_MAJOR_VERSION >= 7 ? 'Throwable' : 'Exception', get_class($error), $error->getTraceAsString() ), Log::CRITICAL, 'error' ); } catch (\Throwable $e) { // Logging failed, don't make a stink about it though } catch (\Exception $e) { // Logging failed, don't make a stink about it though } } } RouteNotFoundException.php 0000604 00000001622 15245530266 0011714 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Router\Exception; defined('JPATH_PLATFORM') or die; /** * Exception class defining an error for a missing route * * @since 3.8.0 */ class RouteNotFoundException extends \InvalidArgumentException { /** * Constructor * * @param string $message The Exception message to throw. * @param integer $code The Exception code. * @param \Exception $previous The previous exception used for the exception chaining. * * @since 3.8.0 */ public function __construct($message = '', $code = 404, \Exception $previous = null) { if (empty($message)) { $message = 'URL was not found'; } parent::__construct($message, $code, $previous); } } EmptyStack.php 0000604 00000001200 15245530316 0007332 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\View\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; /** * Exception thrown when we are trying to operate on an empty section stack */ class EmptyStack extends RuntimeException { public function __construct(string $message = "", int $code = 500, Exception $previous = null) { $message = Text::_('LIB_FOF40_VIEW_EMPTYSECTIONSTACK'); parent::__construct($message, $code, $previous); } } ModelNotFound.php 0000604 00000001220 15245530316 0007765 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\View\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; /** * Exception thrown when we can't get a Controller's name */ class ModelNotFound extends RuntimeException { public function __construct(string $path, string $viewName, int $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF40_VIEW_MODELNOTINVIEW', $path, $viewName); parent::__construct($message, $code, $previous); } } UnrecognisedExtension.php 0000604 00000001256 15245530316 0011603 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\View\Exception; defined('_JEXEC') || die; use Exception; use InvalidArgumentException; use Joomla\CMS\Language\Text; /** * Exception thrown when we can't figure out which engine to use for a view template */ class UnrecognisedExtension extends InvalidArgumentException { public function __construct(string $path, int $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF40_VIEW_UNRECOGNISEDEXTENSION', $path); parent::__construct($message, $code, $previous); } } CannotGetName.php 0000604 00000001214 15245530316 0007736 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\View\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; /** * Exception thrown when we can't get a Controller's name */ class CannotGetName extends RuntimeException { public function __construct(string $message = "", int $code = 500, Exception $previous = null) { if (empty($message)) { $message = Text::_('LIB_FOF40_VIEW_ERR_GET_NAME'); } parent::__construct($message, $code, $previous); } } PossiblySuhosin.php 0000604 00000001307 15245530316 0010433 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\View\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; /** * Exception thrown when the access to the requested resource is forbidden under the current execution context */ class PossiblySuhosin extends RuntimeException { public function __construct(string $message = "", int $code = 403, Exception $previous = null) { if (empty($message)) { $message = Text::_('LIB_FOF40_VIEW_POSSIBLYSUHOSIN'); } parent::__construct($message, $code, $previous); } } AccessForbidden.php 0000604 00000001320 15245530316 0010267 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\View\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; /** * Exception thrown when the access to the requested resource is forbidden under the current execution context */ class AccessForbidden extends RuntimeException { public function __construct(string $message = "", int $code = 403, Exception $previous = null) { if (empty($message)) { $message = Text::_('JLIB_APPLICATION_ERROR_ACCESS_FORBIDDEN'); } parent::__construct($message, $code, $previous); } } ItemNotFound.php 0000604 00000000556 15245554770 0007650 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Controller\Exception; defined('_JEXEC') || die; /** * Exception thrown when we can't find the requested item in a read task */ class ItemNotFound extends \RuntimeException { } LockedRecord.php 0000604 00000001213 15245554770 0007624 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Controller\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; /** * Exception thrown when the provided Model is locked for writing by another user */ class LockedRecord extends \RuntimeException { public function __construct($message = "", $code = 403, Exception $previous = null) { if (empty($message)) { $message = Text::_('LIB_FOF_CONTROLLER_ERR_LOCKED'); } parent::__construct($message, $code, $previous); } } NotADataModel.php 0000604 00000000555 15245554770 0007710 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Controller\Exception; defined('_JEXEC') || die; /** * Exception thrown when the provided Model is not a DataModel */ class NotADataModel extends \InvalidArgumentException { } TaskNotFound.php 0000604 00000000603 15245554770 0007645 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Controller\Exception; defined('_JEXEC') || die; /** * Exception thrown when we can't find a suitable method to handle the requested task */ class TaskNotFound extends \InvalidArgumentException { } UnsupportedCacheException.php 0000604 00000000727 15245554773 0012433 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Cache\Exception; defined('JPATH_PLATFORM') or die; /** * Exception class defining an unsupported cache storage object * * @since 3.6.3 */ class UnsupportedCacheException extends \RuntimeException implements CacheExceptionInterface { } CacheConnectingException.php 0000604 00000000742 15245554773 0012167 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Cache\Exception; defined('JPATH_PLATFORM') or die; /** * Exception class defining an error connecting to the cache storage engine * * @since 3.6.3 */ class CacheConnectingException extends \RuntimeException implements CacheExceptionInterface { } CacheExceptionInterface.php 0000604 00000000622 15245554773 0011775 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Cache\Exception; defined('JPATH_PLATFORM') or die; /** * Exception interface defining a cache storage error * * @since 3.7.0 */ interface CacheExceptionInterface { } ToolbarNotFound.php 0000604 00000001111 15245561504 0010331 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\Factory\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; class ToolbarNotFound extends RuntimeException { public function __construct(string $toolbarClass, int $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF40_TOOLBAR_ERR_NOT_FOUND', $toolbarClass); parent::__construct($message, $code, $previous); } } ControllerNotFound.php 0000604 00000001113 15245561504 0011054 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\Factory\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; class ControllerNotFound extends RuntimeException { public function __construct(string $controller, int $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF40_CONTROLLER_ERR_NOT_FOUND', $controller); parent::__construct($message, $code, $previous); } } DispatcherNotFound.php 0000604 00000001125 15245561504 0011022 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\Factory\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; class DispatcherNotFound extends RuntimeException { public function __construct(string $dispatcherClass, int $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF40_DISPATCHER_ERR_NOT_FOUND', $dispatcherClass); parent::__construct($message, $code, $previous); } } TransparentAuthenticationNotFound.php 0000604 00000001131 15245561504 0014132 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\Factory\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; class TransparentAuthenticationNotFound extends RuntimeException { public function __construct(string $taClass, int $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF40_TRANSPARENTAUTH_ERR_NOT_FOUND', $taClass); parent::__construct($message, $code, $previous); } } ViewNotFound.php 0000604 00000001075 15245561504 0007652 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\Factory\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; use RuntimeException; class ViewNotFound extends RuntimeException { public function __construct(string $viewClass, int $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF40_VIEW_ERR_NOT_FOUND', $viewClass); parent::__construct($message, $code, $previous); } } NoContentType.php 0000604 00000001070 15245567746 0010045 0 ustar 00 <?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 ); } } TreeIncompatibleTable.php 0000604 00000001111 15245567746 0011466 0 ustar 00 <?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 ); } } TreeUnexpectedPrimaryKey.php 0000604 00000001130 15245567746 0012232 0 ustar 00 <?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 ); } } TreeInvalidLftRgt.php 0000604 00000000724 15245567746 0010632 0 ustar 00 <?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 ); } } TreeInvalidLftRgtSibling.php 0000604 00000001131 15245567746 0012133 0 ustar 00 <?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 ); } } TreeInvalidLftRgtCurrent.php 0000604 00000001131 15245567746 0012166 0 ustar 00 <?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 ); } } NoTableColumns.php 0000604 00000000442 15245567746 0010163 0 ustar 00 <?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 { } CannotLockNotLoadedRecord.php 0000604 00000001125 15245567746 0012261 0 ustar 00 <?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 ); } } SpecialColumnMissing.php 0000604 00000000450 15245567746 0011365 0 ustar 00 <?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 { } InvalidSearchMethod.php 0000604 00000000447 15245567746 0011160 0 ustar 00 <?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 { } TreeInvalidLftRgtOther.php 0000604 00000001125 15245567746 0011630 0 ustar 00 <?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 ); } } RecordNotLoaded.php 0000604 00000001076 15245567746 0010312 0 ustar 00 <?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 ); } } TreeRootNotFound.php 0000604 00000001076 15245567746 0010522 0 ustar 00 <?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); } } TreeMethodOnlyAllowedInRoot.php 0000604 00000001077 15245567746 0012650 0 ustar 00 <?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 ); } } TreeInvalidLftRgtParent.php 0000604 00000001127 15245567746 0012002 0 ustar 00 <?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 ); } } NoItemsFound.php 0000604 00000001052 15245567746 0007646 0 ustar 00 <?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 ); } } TreeUnsupportedMethod.php 0000604 00000001076 15245567746 0011613 0 ustar 00 <?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 ); } } BaseException.php 0000604 00000000445 15245567746 0010032 0 ustar 00 <?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 { } NoAssetKey.php 0000604 00000001103 15245567746 0007316 0 ustar 00 <?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 ); } } MissingAttribute.php 0000604 00000001162 15245570402 0010552 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Toolbar\Exception; defined('_JEXEC') || die; use Exception; use InvalidArgumentException; use Joomla\CMS\Language\Text; class MissingAttribute extends InvalidArgumentException { public function __construct($missingArgument, $buttonType, $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF_TOOLBAR_ERR_MISSINGARGUMENT', $missingArgument, $buttonType); parent::__construct($message, $code, $previous); } } UnknownButtonType.php 0000604 00000001121 15245570402 0010745 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Toolbar\Exception; defined('_JEXEC') || die; use Exception; use InvalidArgumentException; use Joomla\CMS\Language\Text; class UnknownButtonType extends InvalidArgumentException { public function __construct($buttonType, $code = 500, Exception $previous = null) { $message = Text::sprintf('LIB_FOF_TOOLBAR_ERR_UNKNOWNBUTTONTYPE', $buttonType); parent::__construct($message, $code, $previous); } } NotADataView.php 0000604 00000000633 15245570472 0007554 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\Controller\Exception; defined('_JEXEC') || die; use InvalidArgumentException; /** * Exception thrown when the provided View does not implement DataViewInterface */ class NotADataView extends InvalidArgumentException { } DownloadError.php 0000604 00000000464 15245570557 0010055 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace FOF40\Download\Exception; defined('_JEXEC') || die; use RuntimeException; class DownloadError extends RuntimeException { } NoComponent.php 0000604 00000001103 15245572053 0007513 0 ustar 00 <?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Container\Exception; defined('_JEXEC') || die; use Exception; class NoComponent extends \Exception { public function __construct($message = "", $code = 0, Exception $previous = null) { if (empty($message)) { $message = 'No component specified building the Container object'; } if (empty($code)) { $code = 500; } parent::__construct($message, $code, $previous); } } UnsupportedStorageException.php 0000604 00000000672 15245572125 0013022 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Session\Exception; defined('JPATH_PLATFORM') or die; /** * Exception class defining an unsupported session storage object * * @since 3.6.3 */ class UnsupportedStorageException extends \RuntimeException { } NotAllowed.php 0000604 00000000627 15245602034 0007327 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Access\Exception; defined('JPATH_PLATFORM') or die; /** * Exception class defining a not allowed access * * @since 3.6.3 */ class NotAllowed extends \RuntimeException { } MissingComponentException.php 0000604 00000001617 15245603153 0012435 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Component\Exception; defined('JPATH_PLATFORM') or die; use Joomla\CMS\Router\Exception\RouteNotFoundException; /** * Exception class defining an error for a missing component * * @since 3.7.0 */ class MissingComponentException extends RouteNotFoundException { /** * Constructor * * @param string $message The Exception message to throw. * @param integer $code The Exception code. * @param \Exception $previous The previous exception used for the exception chaining. * * @since 3.7.0 */ public function __construct($message = '', $code = 404, \Exception $previous = null) { parent::__construct($message, $code, $previous); } } InvalidFieldObject.php 0000604 00000001133 15245635571 0010745 0 ustar 00 <?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\Filter\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; class InvalidFieldObject extends \InvalidArgumentException { public function __construct( $message = "", $code = 500, Exception $previous = null ) { if (empty($message)) { $message = Text::_('LIB_FOF40_MODEL_ERR_FILTER_INVALIDFIELD'); } parent::__construct( $message, $code, $previous ); } } NoDatabaseObject.php 0000604 00000001106 15245635571 0010414 0 ustar 00 <?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\Filter\Exception; defined('_JEXEC') || die; use Exception; use Joomla\CMS\Language\Text; class NoDatabaseObject extends \InvalidArgumentException { public function __construct( $fieldType, $code = 500, Exception $previous = null ) { $message = Text::sprintf('LIB_FOF40_MODEL_ERR_FILTER_NODBOBJECT', $fieldType); parent::__construct( $message, $code, $previous ); } } ForeignModelNotFound.php 0000604 00000000454 15245635632 0011316 0 ustar 00 <?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\Relation\Exception; defined('_JEXEC') || die; class ForeignModelNotFound extends \Exception {} SaveNotSupported.php 0000604 00000000450 15245635632 0010550 0 ustar 00 <?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\Relation\Exception; defined('_JEXEC') || die; class SaveNotSupported extends \Exception {} RelationNotFound.php 0000604 00000000450 15245635632 0010515 0 ustar 00 <?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\Relation\Exception; defined('_JEXEC') || die; class RelationNotFound extends \Exception {} RelationTypeNotFound.php 0000604 00000000454 15245635632 0011363 0 ustar 00 <?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\Relation\Exception; defined('_JEXEC') || die; class RelationTypeNotFound extends \Exception {} PivotTableNotFound.php 0000604 00000000452 15245635632 0011013 0 ustar 00 <?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\Relation\Exception; defined('_JEXEC') || die; class PivotTableNotFound extends \Exception {} NewNotSupported.php 0000604 00000000450 15245635632 0010403 0 ustar 00 <?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\Relation\Exception; defined('_JEXEC') || die; class NewNotSupported extends \Exception { } FilesystemException.php 0000604 00000001773 15245653252 0011275 0 ustar 00 <?php /** * Part of the Joomla Framework Filesystem Package * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\Filesystem\Exception; use Joomla\Filesystem\Path; /** * Exception class for handling errors in the Filesystem package * * @since 1.2.0 * @change 1.6.2 If the message containes a full path, the root path (JPATH_ROOT) is removed from it * to avoid any full path disclosure. Before 1.6.2, the path was propagated as provided. */ class FilesystemException extends \RuntimeException { /** * Constructor. * * @param string $message The message * @param integer $code The code * @param \Throwable|null $previous A previous exception */ public function __construct($message = "", $code = 0, \Throwable $previous = null) { parent::__construct( Path::removeRoot($message), $code, $previous ); } } ParseException.php 0000604 00000006771 15245737605 0010233 0 ustar 00 <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Yaml\Exception; /** * Exception class thrown when an error occurs during parsing. * * @author Fabien Potencier <fabien@symfony.com> */ class ParseException extends RuntimeException { private $parsedFile; private $parsedLine; private $snippet; private $rawMessage; /** * @param string $message The error message * @param int $parsedLine The line where the error occurred * @param string|null $snippet The snippet of code near the problem * @param string|null $parsedFile The file name where the error occurred * @param \Exception|null $previous The previous exception */ public function __construct($message, $parsedLine = -1, $snippet = null, $parsedFile = null, \Exception $previous = null) { $this->parsedFile = $parsedFile; $this->parsedLine = $parsedLine; $this->snippet = $snippet; $this->rawMessage = $message; $this->updateRepr(); parent::__construct($this->message, 0, $previous); } /** * Gets the snippet of code near the error. * * @return string The snippet of code */ public function getSnippet() { return $this->snippet; } /** * Sets the snippet of code near the error. * * @param string $snippet The code snippet */ public function setSnippet($snippet) { $this->snippet = $snippet; $this->updateRepr(); } /** * Gets the filename where the error occurred. * * This method returns null if a string is parsed. * * @return string The filename */ public function getParsedFile() { return $this->parsedFile; } /** * Sets the filename where the error occurred. * * @param string $parsedFile The filename */ public function setParsedFile($parsedFile) { $this->parsedFile = $parsedFile; $this->updateRepr(); } /** * Gets the line where the error occurred. * * @return int The file line */ public function getParsedLine() { return $this->parsedLine; } /** * Sets the line where the error occurred. * * @param int $parsedLine The file line */ public function setParsedLine($parsedLine) { $this->parsedLine = $parsedLine; $this->updateRepr(); } private function updateRepr() { $this->message = $this->rawMessage; $dot = false; if ('.' === substr($this->message, -1)) { $this->message = substr($this->message, 0, -1); $dot = true; } if (null !== $this->parsedFile) { if (\PHP_VERSION_ID >= 50400) { $jsonOptions = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; } else { $jsonOptions = 0; } $this->message .= sprintf(' in %s', json_encode($this->parsedFile, $jsonOptions)); } if ($this->parsedLine >= 0) { $this->message .= sprintf(' at line %d', $this->parsedLine); } if ($this->snippet) { $this->message .= sprintf(' (near "%s")', $this->snippet); } if ($dot) { $this->message .= '.'; } } } DumpException.php 0000604 00000000707 15245737605 0010057 0 ustar 00 <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Yaml\Exception; /** * Exception class thrown when an error occurs during dumping. * * @author Fabien Potencier <fabien@symfony.com> */ class DumpException extends RuntimeException { } RuntimeException.php 0000604 00000000745 15245737605 0010577 0 ustar 00 <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Yaml\Exception; /** * Exception class thrown when an error occurs during parsing. * * @author Romain Neutron <imprec@gmail.com> */ class RuntimeException extends \RuntimeException implements ExceptionInterface { } ExceptionInterface.php 0000604 00000000673 15245737605 0011054 0 ustar 00 <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Yaml\Exception; /** * Exception interface for all exceptions thrown by the component. * * @author Fabien Potencier <fabien@symfony.com> */ interface ExceptionInterface { } UnsupportedArchiveException.php 0000604 00000000650 15246341147 0012772 0 ustar 00 <?php /** * Part of the Joomla Framework Archive Package * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\Archive\Exception; /** * Exception class defining an unsupported archive adapter * * @since 1.1.7 */ class UnsupportedArchiveException extends \InvalidArgumentException { } UnknownArchiveException.php 0000604 00000000635 15246341147 0012104 0 ustar 00 <?php /** * Part of the Joomla Framework Archive Package * * @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\Archive\Exception; /** * Exception class defining an unknown archive type * * @since 1.1.7 */ class UnknownArchiveException extends \InvalidArgumentException { } KeyNotFoundException.php 0000604 00000000731 15246350573 0011350 0 ustar 00 <?php /** * Part of the Joomla Framework DI Package * * @copyright Copyright (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\DI\Exception; use Psr\Container\NotFoundExceptionInterface; /** * No entry was found in the container. * * @since 1.5.0 */ class KeyNotFoundException extends \InvalidArgumentException implements NotFoundExceptionInterface { } ProtectedKeyException.php 0000604 00000000765 15246350573 0011554 0 ustar 00 <?php /** * Part of the Joomla Framework DI Package * * @copyright Copyright (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\DI\Exception; use Psr\Container\ContainerExceptionInterface; /** * Attempt to set the value of a protected key, which already is set * * @since 1.5.0 */ class ProtectedKeyException extends \OutOfBoundsException implements ContainerExceptionInterface { } DependencyResolutionException.php 0000604 00000000763 15246350573 0013312 0 ustar 00 <?php /** * Part of the Joomla Framework DI Package * * @copyright Copyright (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ namespace Joomla\DI\Exception; use Psr\Container\ContainerExceptionInterface; /** * Exception class for handling errors in resolving a dependency * * @since 1.0 */ class DependencyResolutionException extends \RuntimeException implements ContainerExceptionInterface { }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка