Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setContentException (0.08 sec)

  1. src/test/java/org/codelibs/curl/CurlResponseTest.java

        }
    
        @Test
        public void testContentException() {
            CurlResponse response = new CurlResponse();
            Exception exception = new IOException("Test exception");
    
            response.setContentException(exception);
    
            assertSame(exception, response.getContentException());
        }
    
        @Test
        public void testHeaders() {
            CurlResponse response = new CurlResponse();
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/curl/CurlResponse.java

            this.encoding = encoding;
        }
    
        /**
         * Sets the exception that occurred while accessing the content.
         *
         * @param e the exception to set.
         */
        public void setContentException(final Exception e) {
            contentException = e;
        }
    
        /**
         * Gets the exception that occurred while accessing the content, if any.
         *
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/curl/CurlRequest.java

                        contentCache = new ContentCache(dfos.getFile());
                    }
                    response.setContentCache(contentCache);
                } catch (final Exception e) {
                    response.setContentException(e);
                    throw new CurlException("Failed to write a response.", e);
                }
            }
        }
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top