- Sort Score
- Result 10 results
- Languages All
Results 881 - 890 of 2,436 for exception (0.08 sec)
-
docs_src/handling_errors/tutorial003.py
from fastapi import FastAPI, Request from fastapi.responses import JSONResponse class UnicornException(Exception): def __init__(self, name: str): self.name = name app = FastAPI() @app.exception_handler(UnicornException) async def unicorn_exception_handler(request: Request, exc: UnicornException): return JSONResponse( status_code=418,
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Mar 26 19:09:53 UTC 2020 - 626 bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
* C} will be excluded from automated serialization test performed by this method. */ @Test public void testSerializable() throws Exception { // TODO: when we use @BeforeClass, we can pay the cost of class path scanning only once. for (Class<?> classToTest : findClassesToTest(loadClassesInPackage(), SERIALIZABLE_TEST_METHOD_NAMES)) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 17.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/platform/Jdk9PlatformTest.kt
platform.assumeJdk9() val applicationProtocolUnsupported = object : DelegatingSSLSocket(null) { override fun getApplicationProtocol(): String { throw UnsupportedOperationException("Mock exception") } } assertThat(Jdk9Platform().getSelectedProtocol(applicationProtocolUnsupported)).isNull() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt
val subjectCaCerts = subjectToCaCerts[issuer] ?: return null return subjectCaCerts.firstOrNull { try { cert.verify(it.publicKey) return@firstOrNull true } catch (_: Exception) { return@firstOrNull false } } } override fun equals(other: Any?): Boolean { return other === this || (other is BasicTrustRootIndex && other.subjectToCaCerts == subjectToCaCerts)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractor.java
*/ package org.codelibs.fess.crawler.extractor.impl; import java.util.List; import org.codelibs.fess.crawler.container.CrawlerContainer; import org.codelibs.fess.crawler.exception.CrawlerSystemException; import org.codelibs.fess.crawler.extractor.Extractor; import org.codelibs.fess.crawler.extractor.ExtractorFactory; import org.codelibs.fess.crawler.helper.MimeTypeHelper;
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:47:32 UTC 2024 - 1.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/ContentLengthHelper.java
*/ package org.codelibs.fess.crawler.helper; import java.util.HashMap; import java.util.Map; import org.codelibs.core.lang.StringUtil; import org.codelibs.fess.crawler.exception.CrawlerSystemException; /** * @author shinsuke * */ public class ContentLengthHelper { protected long defaultMaxLength = 10L * 1024L * 1024L;// 10M
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 1.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exception/InvalidQueryException.java
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.exception; import org.codelibs.fess.mylasta.action.FessMessages; import org.lastaflute.web.validation.VaMessenger; public class InvalidQueryException extends FessSystemException {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/exception/SsoMessageException.java
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.fess.exception; import org.codelibs.fess.mylasta.action.FessMessages; import org.lastaflute.web.validation.VaMessenger; public class SsoMessageException extends FessSystemException {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.4K bytes - Viewed (0) -
fastapi/concurrency.py
# since we're creating a new limiter for each call, any non-zero limit # works (1 is arbitrary) exit_limiter = CapacityLimiter(1) try: yield await run_in_threadpool(cm.__enter__) except Exception as e: ok = bool( await anyio.to_thread.run_sync( cm.__exit__, type(e), e, None, limiter=exit_limiter ) ) if not ok: raise e else:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Dec 25 17:57:35 UTC 2023 - 1.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/xml/SAXParserFactoryUtil.java
import javax.xml.XMLConstants; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.codelibs.core.exception.ParserConfigurationRuntimeException; import org.codelibs.core.exception.SAXRuntimeException; import org.codelibs.core.lang.ClassUtil; import org.codelibs.core.lang.MethodUtil; import org.xml.sax.SAXException; import org.xml.sax.SAXNotRecognizedException;
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.9K bytes - Viewed (0)