forked from devondragon/SpringUserFramework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWebAuthnException.java
More file actions
55 lines (49 loc) · 1.21 KB
/
Copy pathWebAuthnException.java
File metadata and controls
55 lines (49 loc) · 1.21 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.digitalsanctuary.spring.user.exceptions;
/**
* Exception thrown for WebAuthn-related errors.
*
* <p>
* This is a checked exception used to signal WebAuthn-specific business logic errors such as:
* </p>
* <ul>
* <li>Attempting to delete the last passkey when user has no password</li>
* <li>Invalid credential label (empty, too long)</li>
* <li>Credential not found or access denied</li>
* <li>User not found during credential operations</li>
* </ul>
*/
public class WebAuthnException extends Exception {
/** Serial Version UID. */
private static final long serialVersionUID = 1L;
/**
* Instantiates a new WebAuthn exception.
*/
public WebAuthnException() {
super();
}
/**
* Instantiates a new WebAuthn exception.
*
* @param message the message
* @param cause the cause
*/
public WebAuthnException(final String message, final Throwable cause) {
super(message, cause);
}
/**
* Instantiates a new WebAuthn exception.
*
* @param message the message
*/
public WebAuthnException(final String message) {
super(message);
}
/**
* Instantiates a new WebAuthn exception.
*
* @param cause the cause
*/
public WebAuthnException(final Throwable cause) {
super(cause);
}
}