Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for WithContext (0.08 sec)

  1. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

                    SmbOperationException.RetryPolicy.DEFAULT, initialContext);
    
            // When
            exception.withContext("path", "/share/file.txt").withContext("user", "testuser");
    
            // Then
            Map<String, Object> context = exception.getContext();
            assertEquals("server.example.com", context.get("host"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbResourceException.java

            this.resourceType = resourceType;
            this.availableResources = available;
            this.requestedResources = requested;
    
            // Add context
            withContext("resourceType", resourceType);
            withContext("available", available);
            withContext("requested", requested);
    
            // Add recovery hint
            withRecoveryHint(generateRecoveryHint());
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbOperationException.java

         */
        public SmbOperationException withContext(String key, Object value) {
            this.context.put(key, value);
            return this;
        }
    
        /**
         * Add multiple context values
         *
         * @param contextMap the context map to add
         * @return this exception for chaining
         */
        public SmbOperationException withContext(Map<String, Object> contextMap) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbException.java

         * Adds context information to the exception
         *
         * @param key the context key
         * @param value the context value
         * @return this exception for chaining
         */
        public SmbException withContext(String key, Object value) {
            this.context.put(key, value);
            return this;
        }
    
        /**
         * Sets a recovery hint for the error
         *
         * @param hint the recovery hint
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top