1 <?php
2
3 namespace Alo\Exception;
4
5 if(!defined('GEN_START')) {
6 http_response_code(404);
7 die();
8 }
9
10 /**
11 * Cron-related exceptions
12 *
13 * @author Art <a.molcanovas@gmail.com>
14 */
15 class CronException extends AbstractException {
16
17 /**
18 * Code when the minute expression is invalid
19 *
20 * @var int
21 */
22 const E_INVALID_MIN = 101;
23
24 /**
25 * Code when the schedule expression is invalid
26 *
27 * @var int
28 */
29 const E_INVALID_EXPR = 102;
30
31 /**
32 * Code when one or more arguments are non-scalar
33 *
34 * @var int
35 */
36 const E_ARGS_NONSCALAR = 103;
37
38 }