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 * System exception class for the Fess search engine.
20 * This exception is thrown when system-level errors occur in the Fess application,
21 * such as configuration errors, initialization failures, or critical runtime issues.
22 */
23 public class FessSystemException extends RuntimeException {
24
25 /** Serial version UID for serialization compatibility */
26 private static final long serialVersionUID = 1L;
27
28 /**
29 * Constructs a new FessSystemException with the specified detail message and cause.
30 *
31 * @param message the detail message describing the exception
32 * @param cause the cause of this exception
33 */
34 public FessSystemException(final String message, final Throwable cause) {
35 super(message, cause);
36 }
37
38 /**
39 * Constructs a new FessSystemException with the specified detail message.
40 *
41 * @param message the detail message describing the exception
42 */
43 public FessSystemException(final String message) {
44 super(message);
45 }
46
47 /**
48 * Constructs a new FessSystemException with the specified cause.
49 *
50 * @param cause the cause of this exception
51 */
52 public FessSystemException(final Throwable cause) {
53 super(cause);
54 }
55
56 /**
57 * Constructs a new FessSystemException with the specified detail message and suppression settings.
58 *
59 * @param message the detail message describing the exception
60 * @param enableSuppression whether suppression is enabled or disabled
61 * @param writableStackTrace whether the stack trace should be writable
62 */
63 protected FessSystemException(final String message, final boolean enableSuppression, final boolean writableStackTrace) {
64 super(message, null, enableSuppression, writableStackTrace);
65 }
66
67 }