- Sort Score
- Result 10 results
- Languages All
Results 1131 - 1140 of 1,476 for mymessage (0.04 sec)
-
docs/en/docs/tutorial/handling-errors.md
But it will be handled by the `unicorn_exception_handler`. So, you will receive a clean error, with an HTTP status code of `418` and a JSON content of: ```JSON {"message": "Oops! yolo did something. There goes a rainbow..."} ``` /// note | Technical Details You could also use `from starlette.requests import Request` and `from starlette.responses import JSONResponse`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
assertFailsWith<IOException> { source.read(Buffer(), 1) }.also { expected -> assertThat(expected.message).isEqualTo("stream closed") } assertFailsWith<IOException> { out.writeUtf8("a") out.flush() }.also { expected -> assertThat(expected.message).isEqualTo("stream finished") } assertThat(connection.openStreamCount()).isEqualTo(0)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 75.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
}, "A PACDecodingException should be thrown for a malformed token."); assertEquals("Malformed kerberos ticket", exception.getMessage(), "The exception message should indicate a malformed ticket."); } /** * Test constructor with an empty token. * Empty token causes readObject() to return null, which leads to NullPointerException. */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
// treats an incomplete response body as a ProtocolException. } catch (ioe: IOException) { // Change in https://bugs.openjdk.org/browse/JDK-8335135 assertThat(ioe.message).isEqualTo("Premature EOF") } } private fun headersToList(response: MockResponse): List<String> { val headers = response.headers val size = headers.sizeRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
{* ../../docs_src/custom_response/tutorial009c_py39.py hl[9:14,17] *} Now instead of returning: ```json {"message": "Hello World"} ``` ...this response will return: ```json { "message": "Hello World" } ``` Of course, you will probably find much better ways to take advantage of this than formatting JSON. 😉Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 12.4K bytes - Viewed (0) -
docs/de/docs/advanced/custom-response.md
{* ../../docs_src/custom_response/tutorial009c_py39.py hl[9:14,17] *} Statt: ```json {"message": "Hello World"} ``` ... wird die Response jetzt Folgendes zurückgeben: ```json { "message": "Hello World" } ``` Natürlich werden Sie wahrscheinlich viel bessere Möglichkeiten finden, Vorteil daraus zu ziehen, als JSON zu formatieren. 😉Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterRefactoringTest.java
exceptionThrown = true; exceptionMessage = e.getMessage(); // Check if the message contains the expected text // It could be either "Unexpected number of update indices" or "Unexpected number of search indices" // depending on which check fails first assertTrue("Exception message should mention unexpected indices: " + exceptionMessage,Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 13.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/sql/ResultSetUtil.java
/** * Do not instantiate. */ protected ResultSetUtil() { } /** * Closes the result set. * <p> * If {@link ResultSet#close()} throws an exception, an error message is logged. The exception is not rethrown. * </p> * * @param resultSet * The result set */ public static void close(final ResultSet resultSet) { if (resultSet == null) {Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TestLogHandler.java
* } * }); * } * * public void test() { * SomeClass.foo(); * LogRecord firstRecord = handler.getStoredLogRecords().get(0); * assertEquals("some message", firstRecord.getMessage()); * } * </pre> * * @author Kevin Bourrillion * @since 10.0 */ @GwtCompatible @NullMarked public class TestLogHandler extends Handler {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.8K bytes - Viewed (0)