aboutsummaryrefslogtreecommitdiff
path: root/lib/exceptions/KeyringException.php
blob: df797192aa1ca6de0637f58641abb2612e5087df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;
}