Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 1,117 for properly (0.11 seconds)

  1. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java

                        bufferIndex += stringWireLength(this.nativeFileSystem, bufferIndex);
                    }
                } catch (final Exception e) {
                    // Ignore errors - some servers don't properly return this field
                    // Keep the default empty string value
                }
            }
    
            return bufferIndex - start;
        }
    
        @Override
        public String toString() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_stackTrace() {
            // Test that stack trace is generated properly
            LdapConfigurationException exception = new LdapConfigurationException("Stack trace test");
    
            StackTraceElement[] stackTrace = exception.getStackTrace();
            assertNotNull(stackTrace);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  3. docs/en/docs/advanced/middleware.md

    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    But FastAPI (actually Starlette) provides a simpler way to do it that makes sure that the internal middlewares handle server errors and custom exception handlers work properly.
    
    For that, you use `app.add_middleware()` (as in the example for CORS).
    
    ```Python
    from fastapi import FastAPI
    from unicorn import UnicornMiddleware
    
    app = FastAPI()
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  4. tests/test_response_dependency.py

    """Test using special types (Response, Request, BackgroundTasks) as dependency annotations.
    
    These tests verify that special FastAPI types can be used with Depends() annotations
    and that the dependency injection system properly handles them.
    """
    
    from typing import Annotated
    
    from fastapi import BackgroundTasks, Depends, FastAPI, Request, Response
    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 18:23:16 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  5. internal/s3select/errors.go

    		cause:      err,
    	}
    }
    
    func errTruncatedInput(err error) *s3Error {
    	return &s3Error{
    		code:       "TruncatedInput",
    		message:    "Object decompression failed. Check that the object is properly compressed using the format specified in the request.",
    		statusCode: 400,
    		cause:      err,
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Mar 14 16:48:36 GMT 2022
    - 4.3K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/exception/PluginExceptionTest.java

                assertEquals(expectedCause, e.getCause());
            }
        }
    
        @Test
        public void test_stackTrace() {
            // Test that stack trace is properly set
            PluginException exception = new PluginException("Stack trace test");
    
            assertNotNull(exception.getStackTrace());
            assertTrue(exception.getStackTrace().length > 0);
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/SmbException.java

            /* Note there's a signedness error here because 0xC0000000 based values are
             * negative so it with NT_STATUS_SUCCESS (0) the binary search will not be
             * performed properly. The effect is that the code at index 1 is never found
             * (NT_STATUS_UNSUCCESSFUL). So here we factor out NT_STATUS_SUCCESS
             * as a special case (which it is).
             */
            if (errcode == 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

            assertTrue(result.contains("quotes"));
            assertTrue(result.contains("content"));
            assertTrue(result.contains("newlines"));
            assertTrue(result.contains("tabs"));
            // JSON should be properly escaped
            assertTrue(result.contains("Test"));
        }
    
        @Test
        public void test_toSlackMessage_withWhitespaceContent() {
            MockSMailPostingDiscloser discloser = new MockSMailPostingDiscloser();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 20K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/FessConfigTest.java

        }
    
        // Test property not found exception
        @Test
        public void test_propertyNotFound() {
            try {
                fessConfig.get("non.existent.property");
                fail("Should throw ConfigPropertyNotFoundException");
            } catch (ConfigPropertyNotFoundException e) {
                assertEquals("non.existent.property", e.getMessage());
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.6K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java

            assertNotNull(deserialized);
            assertNull(deserialized.getMessage());
            assertNull(deserialized.getCause());
        }
    
        @Test
        public void test_stackTrace() {
            // Test that stack trace is properly maintained
            DictionaryExpiredException exception = new DictionaryExpiredException();
            StackTraceElement[] stackTrace = exception.getStackTrace();
    
            assertNotNull(stackTrace);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.5K bytes
    - Click Count (0)
Back to Top