blob: e399bd3b077a246b422827ada035281d4c40788b [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?php
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01002namespace lbuchs\WebAuthn;
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01003
4/**
5 * @author Lukas Buchs
6 * @license https://github.com/lbuchs/WebAuthn/blob/master/LICENSE MIT
7 */
8class WebAuthnException extends \Exception {
9 const INVALID_DATA = 1;
10 const INVALID_TYPE = 2;
11 const INVALID_CHALLENGE = 3;
12 const INVALID_ORIGIN = 4;
13 const INVALID_RELYING_PARTY = 5;
14 const INVALID_SIGNATURE = 6;
15 const INVALID_PUBLIC_KEY = 7;
16 const CERTIFICATE_NOT_TRUSTED = 8;
17 const USER_PRESENT = 9;
18 const USER_VERIFICATED = 10;
19 const SIGNATURE_COUNTER = 11;
20 const CRYPTO_STRONG = 13;
21 const BYTEBUFFER = 14;
22 const CBOR = 15;
23
24 public function __construct($message = "", $code = 0, $previous = null) {
25 parent::__construct($message, $code, $previous);
26 }
27}