- Sort Score
- Num 10 results
- Language All
Results 1 - 9 of 9 for CurlException (0.15 seconds)
-
src/main/java/org/codelibs/curl/CurlException.java
* * <p>Usage examples:</p> * <pre> * throw new CurlException("Error message"); * throw new CurlException("Error message", cause); * </pre> * * @see RuntimeException */ public class CurlException extends RuntimeException { private static final long serialVersionUID = 1L; /** * Constructs a new CurlException with the specified detail message and cause. *
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Jul 05 01:38:18 GMT 2025 - 2K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/CurlExceptionTest.java
CurlException exception = new CurlException(message); String toString = exception.toString(); assertNotNull(toString); assertTrue(toString.contains("CurlException")); assertTrue(toString.contains(message)); } @Test public void testStackTrace() { CurlException exception = new CurlException("Test message");Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Jul 31 01:01:12 GMT 2025 - 4.2K 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/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/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) -
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) -
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) -
README.md
- `org.codelibs.curl.CurlRequest`: builder for HTTP requests. - `org.codelibs.curl.CurlResponse`: wrapper for HTTP responses. - `org.codelibs.curl.CurlException`: unchecked exception for errors. - `org.codelibs.curl.io.ContentCache` and `ContentOutputStream`: internal utilities for streaming and caching. Refer to the Javadoc for full API details. ## Building and Testing
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Thu Nov 20 13:34:13 GMT 2025 - 2.5K bytes - Click Count (0)