blob: 823f7d809db5d58135cf449e8c6535fcf1e6b504 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001<?php
2namespace 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
24 public function __construct($message = "", $code = 0, $previous = null) {
25 parent::__construct($message, $code, $previous);
26 }
27}