- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for webApiException (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
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());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 9.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java
} processRequest(request, response, path); }).orElse(() -> { throw new WebApiException(HttpServletResponse.SC_FORBIDDEN, "Invalid session."); }); } catch (final WebApiException e) { final int statusCode = e.getStatusCode(); String message;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:40 GMT 2026 - 13.4K bytes - Click Count (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() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 3.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/api/json/SearchApiManager.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 27 13:56:32 GMT 2026 - 55.4K bytes - Click Count (1) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
// Note: WebApiException constructor calls e.getMessage() on null exception, causing NullPointerException try { WebApiUtil.setError(500, (Exception) null); fail("setError should throw NullPointerException when passed null exception"); } catch (NullPointerException e) { // Expected - WebApiException constructor cannot handle null exception
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0)