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!

 Methods

Constructs the Exception.

__construct(string $message, int $code, \Exception $previous) 

Parameters

$message

string

The Exception message to throw.

$code

int

The Exception code.

$previous

\Exception

The previous exception used for the exception chaining.

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

log() 

 Properties

 

$_log : boolean
 

$_logger : \cLog