Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for WithContext (0.07 sec)

  1. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  4. gorm.go

    	if config.NowFunc != nil {
    		tx.Config.NowFunc = config.NowFunc
    	}
    
    	if config.Initialized {
    		tx = tx.getInstance()
    	}
    
    	return tx
    }
    
    // WithContext change current instance db's context to ctx
    func (db *DB) WithContext(ctx context.Context) *DB {
    	return db.Session(&Session{Context: ctx})
    }
    
    // Debug start debug mode
    func (db *DB) Debug() (tx *DB) {
    	tx = db.getInstance()
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 26 06:24:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top