Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for webApiException (0.05 seconds)

  1. 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.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  2. 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)
  3. 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)
Back to Top