Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Interfaces

  • cBadFunctionCallException
  • cBadMethodCallException
  • cDomainException
  • cErrorException
  • cException
  • cFileNotFoundException
  • cInvalidArgumentException
  • cLengthException
  • cLogicException
  • cOutOfBoundsException
  • cOutOfRangeException
  • cOverflowException
  • cRangeException
  • cRuntimeException
  • cUnderflowException
  • cUnexpectedValueException
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cException

cException is the base class for all exceptions. You should use this CONTENIDO exception instead of the standard PHP Exception. This exception type is logged to data/logs/exception.txt. If there is a more specific and more appropriate subclass, use the subclass!

Exception
Extended by cException

Direct known subclasses

cDbException, cErrorException, cLogicException, cRuntimeException, PifaException, SolrException, SolrWarning

Indirect known subclasses

cBadFunctionCallException, cBadMethodCallException, cUnderflowException, cUnexpectedValueException, PifaDatabaseException, PifaIllegalStateException, PifaMailException, PifaNotImplementedException, PifaNotYetStoredException, PifaValidationException, cDomainException, cFileNotFoundException, cInvalidArgumentException, cLengthException, cOutOfBoundsException, cOutOfRangeException, cOverflowException, cRangeException
Package: Core\Exception
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Simon Sprankel
Located at classes/exceptions/class.exception.php
Methods summary
public
# __construct( string $message, integer $code = 0, Exception $previous = NULL, array $options,… )

Constructs the Exception.

Constructs the Exception.

Parameters

$message
The Exception message to throw.
$code
The Exception code.
$previous

The previous exception used for the exception chaining.

$options,…

exception logging options. By default cExceptions are not logged but cErrorExceptions are

Overrides

Exception::__construct()
public
# log( )

Logs this exception no matter if the log flag is set or not.

Logs this exception no matter if the log flag is set or not.

Methods inherited from Exception
__toString(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties summary
protected boolean $_log_exception

Defines if an exception if this type should be logged. May be defined by any exception individually.

Defines if an exception if this type should be logged. May be defined by any exception individually.

See

CON-1690
# false
protected cLog $_logger

Saves an instance of the logger class for logging exceptions in the corresponding log.

Saves an instance of the logger class for logging exceptions in the corresponding log.

# NULL
Properties inherited from Exception
$code, $file, $line, $message
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen