2020-08-04 11:25:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
2020-05-27 18:46:16 +02:00
|
|
|
/**
|
|
|
|
* Setup how the exception handler works.
|
|
|
|
*/
|
2021-04-02 17:20:02 +00:00
|
|
|
class Exceptions extends BaseConfig
|
2020-05-27 18:46:16 +02:00
|
|
|
{
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* LOG EXCEPTIONS?
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* If true, then exceptions will be logged
|
|
|
|
* through Services::Log.
|
|
|
|
*
|
|
|
|
* Default: true
|
|
|
|
*
|
|
|
|
* @var boolean
|
2020-08-04 11:25:22 +00:00
|
|
|
*/
|
2020-06-10 15:00:12 +00:00
|
|
|
public $log = true;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* DO NOT LOG STATUS CODES
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Any status codes here will NOT be logged if logging is turned on.
|
|
|
|
* By default, only 404 (Page Not Found) exceptions are ignored.
|
|
|
|
*
|
2021-05-14 17:59:35 +00:00
|
|
|
* @var int[]
|
2020-08-04 11:25:22 +00:00
|
|
|
*/
|
2020-06-10 15:00:12 +00:00
|
|
|
public $ignoreCodes = [404];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Error Views Path
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* This is the path to the directory that contains the 'cli' and 'html'
|
|
|
|
* directories that hold the views used to generate errors.
|
|
|
|
*
|
|
|
|
* Default: APPPATH.'Views/errors'
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2020-06-10 15:00:12 +00:00
|
|
|
public $errorViewPath = APPPATH . 'Views/errors';
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|