blob: f27eeec7ebc9c6b060680f533ceeea93f94ed52b [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<?php
2namespace lbuchs\WebAuthn;
3
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 const ANDROID_NOT_TRUSTED = 16;
24
25 public function __construct($message = "", $code = 0, $previous = null) {
26 parent::__construct($message, $code, $previous);
27 }
28}