- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for CurlException (0.26 seconds)
-
src/test/java/org/codelibs/curl/CurlRequestTest.java
request.param("key", "value"); try { request.encoding("ISO-8859-1"); fail("Expected CurlException"); } catch (CurlException e) { assertTrue(e.getMessage().contains("must be called before param method")); } } @Test public void testThresholdMethod() {
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 24.7K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlResponseTest.java
try { response.getContentAsStream(); fail("Expected CurlException"); } catch (CurlException e) { assertTrue(e.getMessage().contains("The content does not exist")); assertSame(exception, e.getCause()); } catch (IOException e) { fail("Should throw CurlException, not IOException"); } } @TestCreated: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 17.7K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
* @return the content as a string. * @throws CurlException if an error occurs while accessing the content. */ public String getContentAsString() { if (contentCache == null) { if (contentException != null) { throw new CurlException("Failed to access the content.", contentException); } throw new CurlException("Failed to access the content."); } try {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 6.8K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
* * @param encoding the encoding * @return this CurlRequest instance * @throws CurlException if the method is called after the param method */ public CurlRequest encoding(final String encoding) { if (paramList != null) { throw new CurlException("This method must be called before param method."); } this.encoding = encoding; return this;Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 19.7K bytes - Click Count (0) -
CLAUDE.md
│ │ ├── Curl.java # Static entry point with factory methods │ │ ├── CurlRequest.java # Fluent request builder │ │ ├── CurlResponse.java # Response wrapper (implements Closeable) │ │ ├── CurlException.java # Unchecked exception for HTTP errors │ │ └── io/ │ │ ├── ContentCache.java # In-memory or file-based caching │ │ └── ContentOutputStream.java # Threshold-based output stream
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Jan 08 07:28:24 GMT 2026 - 4.3K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/IOIntegrationTest.java
throw new IOException("Simulated connection failure"); }); // ## Act & Assert ## try { req.execute(); fail("Should throw CurlException"); } catch (CurlException e) { assertTrue(e.getMessage().contains("Failed to")); assertNotNull(e.getCause()); } } @Test
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 12:00:34 GMT 2026 - 44.1K bytes - Click Count (0)