diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2024-01-29 15:16:24 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2024-01-29 15:16:24 +0000 |
| commit | 7c1df847d94d3956bc763b94b73cebfe108dc9a1 (patch) | |
| tree | e18e003bff65c5bf0748c644d6cd3d235cb1feca /lib/exceptions/FeatureDisabledException.php | |
| parent | da0110d5e85279123e8dde392cb4c926397238bf (diff) | |
StEP 01354, closes #1354
Closes #1354
Merge request studip/studip!2116
Diffstat (limited to 'lib/exceptions/FeatureDisabledException.php')
| -rw-r--r-- | lib/exceptions/FeatureDisabledException.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/exceptions/FeatureDisabledException.php b/lib/exceptions/FeatureDisabledException.php new file mode 100644 index 0000000..16af0bf --- /dev/null +++ b/lib/exceptions/FeatureDisabledException.php @@ -0,0 +1,11 @@ +<?php +class FeatureDisabledException extends StudipException +{ + public function __construct($message = '', $code = 0, Exception $previous = null) + { + if (func_num_args() === 0) { + $message = _('Diese Funktion ist ausgeschaltet.'); + } + parent::__construct($message, [], $code, $previous); + } +} |
