commit | author | age
|
352436
|
1 |
package org.keycloak.protocol.cas.utils; |
MP |
2 |
|
fdb9f6
|
3 |
import jakarta.ws.rs.WebApplicationException; |
JK |
4 |
import jakarta.ws.rs.core.Response; |
352436
|
5 |
import org.keycloak.protocol.cas.representations.CASErrorCode; |
MP |
6 |
|
|
7 |
public class CASValidationException extends WebApplicationException { |
755fd7
|
8 |
private static final long serialVersionUID = 4929825917145240776L; |
352436
|
9 |
private final CASErrorCode error; |
MP |
10 |
private final String errorDescription; |
|
11 |
private final Response.Status status; |
|
12 |
|
|
13 |
public CASValidationException(CASErrorCode error, String errorDescription, Response.Status status) { |
|
14 |
this.error = error; |
|
15 |
this.errorDescription = errorDescription; |
|
16 |
this.status = status; |
|
17 |
} |
|
18 |
|
|
19 |
public CASErrorCode getError() { |
|
20 |
return error; |
|
21 |
} |
|
22 |
|
|
23 |
public String getErrorDescription() { |
|
24 |
return errorDescription; |
|
25 |
} |
|
26 |
|
|
27 |
public Response.Status getStatus() { |
|
28 |
return status; |
|
29 |
} |
|
30 |
} |