CKFinder 3 – PHP Connector Documentation
ExceptionHandler Class Reference
Inheritance diagram for ExceptionHandler:

Public Member Functions

 __construct (Translator $translator, $debug=false, LoggerInterface $logger=null)
 
 onCKFinderError (ExceptionEvent $event)
 
 errorHandler ($errno, $errstr, $errfile, $errline)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Protected Attributes

 $debug
 
 $logger
 
 $translator
 

Detailed Description

The exception handler class.

All errors are resolved here and passed to the response.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Translator  $translator,
  $debug = false,
LoggerInterface  $logger = null 
)

Constructor.

Parameters
Translator$translatortranslator object
bool$debugtrue if debug mode is enabled
LoggerInterface$loggerlogger

Member Function Documentation

◆ errorHandler()

errorHandler (   $errno,
  $errstr,
  $errfile,
  $errline 
)

Custom error handler to catch all errors in the debug mode.

Parameters
int$errno
string$errstr
string$errfile
int$errline
Exceptions

Exception

◆ getSubscribedEvents()

static getSubscribedEvents ( )
static

Returns all events and callbacks.

See also
EventSubscriberInterface
Returns
array

The documentation for this class was generated from the following file: