1: <?php
2: /**
3: * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
4: * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
5: *
6: * Licensed under The MIT License
7: * Redistributions of files must retain the above copyright notice.
8: *
9: * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
10: * @link https://book.cakephp.org/3.0/en/development/errors.html#error-exception-configuration
11: * @since 3.0.0
12: * @license https://opensource.org/licenses/mit-license.php MIT License
13: */
14: namespace Cake\Console\Exception;
15:
16: use Cake\Console\Command;
17: use Cake\Core\Exception\Exception;
18:
19: /**
20: * Exception class for Console libraries. This exception will be thrown from Console library
21: * classes when they encounter an error.
22: */
23: class ConsoleException extends Exception
24: {
25: /**
26: * Default exception code
27: *
28: * @var int
29: */
30: protected $_defaultCode = Command::CODE_ERROR;
31: }
32: