- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for WebApiException (0.26 sec)
-
src/main/java/org/codelibs/fess/exception/WebApiException.java
} /** * Constructs a WebApiException with the specified status code and message. * * @param statusCode The HTTP status code * @param message The detail message */ public WebApiException(final int statusCode, final String message) { super(message); this.statusCode = statusCode; } /** * Constructs a WebApiException with the specified status code and exception.
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 2.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java
// Test creating multiple exceptions with different status codes WebApiException exception1 = new WebApiException(400, "Bad Request"); WebApiException exception2 = new WebApiException(401, "Unauthorized"); WebApiException exception3 = new WebApiException(500, "Internal Error"); assertEquals(400, exception1.getStatusCode());
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/WebApiUtil.java
LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(WEB_API_EXCEPTION, new WebApiException(statusCode, e))); } /** * Validates the current request by checking for stored web API exceptions. * Throws any stored WebApiException if found. * * @throws WebApiException If a web API exception was previously stored */ public static void validate() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 3.2K bytes - Viewed (0)