|
6 | 6 |
|
7 | 7 | class InvalidConfig extends Exception
|
8 | 8 | {
|
9 |
| - public static function actionKeyNotFound(string $actionName): static |
| 9 | + public static function actionKeyNotFound(string $actionName): self |
10 | 10 | {
|
11 |
| - return new static("There is no action with name `{$actionName}` configured in the `actions` key of the config file."); |
| 11 | + return new self("There is no action with name `{$actionName}` configured in the `actions` key of the config file."); |
12 | 12 | }
|
13 | 13 |
|
14 |
| - public static function actionClassDoesNotExist(string $actionClass): static |
| 14 | + public static function actionClassDoesNotExist(string $actionClass): self |
15 | 15 | {
|
16 |
| - return new static("Action class '{$actionClass}' does not exist."); |
| 16 | + return new self("Action class '{$actionClass}' does not exist."); |
17 | 17 | }
|
18 | 18 |
|
19 |
| - public static function modelClassNotConfigured(): static |
| 19 | + public static function modelClassNotConfigured(): self |
20 | 20 | {
|
21 |
| - return new static('Model class not configured. Please set the `model` key in the config file to the fully qualified class name of your model.'); |
| 21 | + return new self('Model class not configured. Please set the `model` key in the config file to the fully qualified class name of your model.'); |
22 | 22 | }
|
23 | 23 |
|
24 |
| - public static function modelClassDoesNotExist(string $modelClass): static |
| 24 | + public static function modelClassDoesNotExist(string $modelClass): self |
25 | 25 | {
|
26 |
| - return new static("Model class '{$modelClass}' does not exist"); |
| 26 | + return new self("Model class '{$modelClass}' does not exist"); |
27 | 27 | }
|
28 | 28 |
|
29 |
| - public static function aiProviderNotConfigured(string $configName): static |
| 29 | + public static function aiProviderNotConfigured(string $configName): self |
30 | 30 | {
|
31 |
| - return new static("AI provider not configured for '{$configName}'"); |
| 31 | + return new self("AI provider not configured for '{$configName}'"); |
32 | 32 | }
|
33 | 33 |
|
34 |
| - public static function invalidAiProvider(string $configName): static |
| 34 | + public static function invalidAiProvider(string $configName): self |
35 | 35 | {
|
36 |
| - return new static("Invalid AI provider configured for '{$configName}'"); |
| 36 | + return new self("Invalid AI provider configured for '{$configName}'"); |
37 | 37 | }
|
38 | 38 |
|
39 |
| - public static function aiModelNotConfigured(string $configName): static |
| 39 | + public static function aiModelNotConfigured(string $configName): self |
40 | 40 | {
|
41 |
| - return new static("AI model not configured for '{$configName}'"); |
| 41 | + return new self("AI model not configured for '{$configName}'"); |
42 | 42 | }
|
43 | 43 |
|
44 |
| - public static function actionClassDoesNotExtend(string $actionClass, string $mustBeOrExtend): static |
| 44 | + public static function actionClassDoesNotExtend(string $actionClass, string $mustBeOrExtend): self |
45 | 45 | {
|
46 |
| - return new static("Action class '{$actionClass}' must be or extend '{$mustBeOrExtend}'"); |
| 46 | + return new self("Action class '{$actionClass}' must be or extend '{$mustBeOrExtend}'"); |
47 | 47 | }
|
48 | 48 |
|
49 |
| - public static function jobKeyNotFound(string $jobName): static |
| 49 | + public static function jobKeyNotFound(string $jobName): self |
50 | 50 | {
|
51 |
| - return new static("There is no job with name `{$jobName}` configured in the `jobs` key of the config file."); |
| 51 | + return new self("There is no job with name `{$jobName}` configured in the `jobs` key of the config file."); |
52 | 52 | }
|
53 | 53 |
|
54 |
| - public static function jobClassDoesNotExist(string $jobClass): static |
| 54 | + public static function jobClassDoesNotExist(string $jobClass): self |
55 | 55 | {
|
56 |
| - return new static("Job class '{$jobClass}' does not exist."); |
| 56 | + return new self("Job class '{$jobClass}' does not exist."); |
57 | 57 | }
|
58 | 58 |
|
59 |
| - public static function jobClassDoesNotExtend(string $jobClass, string $mustBeOrExtend): static |
| 59 | + public static function jobClassDoesNotExtend(string $jobClass, string $mustBeOrExtend): self |
60 | 60 | {
|
61 |
| - return new static("Job class '{$jobClass}' must be or extend '{$mustBeOrExtend}'"); |
| 61 | + return new self("Job class '{$jobClass}' must be or extend '{$mustBeOrExtend}'"); |
62 | 62 | }
|
63 | 63 | }
|
0 commit comments