1 /*
2 * Copyright 2012-2025 CodeLibs Project and the Others.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13 * either express or implied. See the License for the specific language
14 * governing permissions and limitations under the License.
15 */
16 package org.codelibs.fess.exception;
17
18 /**
19 * Exception thrown when SSO (Single Sign-On) login operations fail.
20 *
21 * This exception is used to indicate various SSO authentication failures
22 * including configuration errors, authentication token validation failures,
23 * communication issues with SSO providers, and other SSO-related problems.
24 */
25 public class SsoLoginException extends FessSystemException {
26
27 /** Serial version UID for serialization compatibility. */
28 private static final long serialVersionUID = 1L;
29
30 /**
31 * Constructs a new SsoLoginException with the specified detail message.
32 *
33 * @param message The detail message explaining the SSO login failure
34 */
35 public SsoLoginException(final String message) {
36 super(message);
37 }
38
39 /**
40 * Constructs a new SsoLoginException with the specified detail message and cause.
41 *
42 * @param message The detail message explaining the SSO login failure
43 * @param cause The underlying exception that caused this SSO login failure
44 */
45 public SsoLoginException(final String message, final Throwable cause) {
46 super(message, cause);
47 }
48
49 }