diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2025-01-10 13:34:43 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2025-01-10 13:34:43 +0000 |
| commit | 0197b62000071439ef6f72d7a4972fefbaf1acac (patch) | |
| tree | bd1b820478f3869ed4dcd499458f5fc383d171d2 /lib/exceptions | |
| parent | 39745c9aa8bb099e8bda1f4d775ed229dbe97be4 (diff) | |
StEP 3348, closes #3348
Closes #3348
Merge request studip/studip!2275
Diffstat (limited to 'lib/exceptions')
| -rw-r--r-- | lib/exceptions/KeyringException.php | 27 | ||||
| -rw-r--r-- | lib/exceptions/LTIException.php | 17 |
2 files changed, 44 insertions, 0 deletions
diff --git a/lib/exceptions/KeyringException.php b/lib/exceptions/KeyringException.php new file mode 100644 index 0000000..df79719 --- /dev/null +++ b/lib/exceptions/KeyringException.php @@ -0,0 +1,27 @@ +<?php + +namespace Studip; + +use Studip\Exception; + +/** + * The KeyringException class represents exceptions that occurr when using keyrings. + */ +class KeyringException extends Exception +{ + /** + * The CREATION_FAILED status code means that a keyring could not be created. + */ + public const CREATION_FAILED = 1; + + /** + * The NOT FOUND status code means that the search for a keyring did not yield a result. + */ + public const NOT_FOUND = 2; + + /** + * The UNSUPPORTED_KEY_ALGORITHM status code means that the selected key algorithm + * is not supported. + */ + public const UNSUPPORTED_KEY_ALGORITHM = 3; +} diff --git a/lib/exceptions/LTIException.php b/lib/exceptions/LTIException.php new file mode 100644 index 0000000..9e096da --- /dev/null +++ b/lib/exceptions/LTIException.php @@ -0,0 +1,17 @@ +<?php + +namespace Studip; + +use Studip\Exception; + +/** + * The LTIException class represents exceptions that occur in the Stud.IP LTI interface. + */ +class LTIException extends Exception +{ + /** + * The REGISTRATION_NOT_LINKED_TO_TOOL status code represents the case where + * a LTI tool registration is not linked to a tool. + */ + public const REGISTRATION_NOT_LINKED_TO_TOOL = 1; +} |
