Exception thrown if an argument does not match with the expected value.

You should use this CONTENIDO exception instead of the standard PHP InvalidArgumentException. This exception type is logged to data/logs/exception.txt.

 Methods

Constructs the Exception.

__construct(string $message, int $code, \Exception $previous) 
Inherited
inherited_from \cException::__construct()
inherited_from \cLogicException::__construct()

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() 
Inherited
inherited_from \cException::log()
inherited_from \cLogicException::log()

 Properties

 

$_log : boolean
Inherited
inherited_from \cException::$$_log
inherited_from \cLogicException::$$_log
 

$_logger : \cLog
Inherited
inherited_from \cException::$$_logger
inherited_from \cLogicException::$$_logger