Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for Exceptions (0.2 sec)

  1. docs/en/docs/reference/exceptions.md

    # Exceptions - `HTTPException` and `WebSocketException`
    
    These are the exceptions that you can raise to show errors to the client.
    
    When you raise an exception, as would happen with normal Python, the rest of the execution is aborted. This way you can raise these exceptions from anywhere in the code to abort a request and show the error to the client.
    
    You can use:
    
    * `HTTPException`
    * `WebSocketException`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 597 bytes
    - Viewed (0)
  2. fastapi/__init__.py

    from starlette import status as status
    
    from .applications import FastAPI as FastAPI
    from .background import BackgroundTasks as BackgroundTasks
    from .datastructures import UploadFile as UploadFile
    from .exceptions import HTTPException as HTTPException
    from .exceptions import WebSocketException as WebSocketException
    from .param_functions import Body as Body
    from .param_functions import Cookie as Cookie
    from .param_functions import Depends as Depends
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:50:18 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

       * RuntimeException runtime exceptions} thrown by the executor.
       */
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      private static void executeListener(Runnable runnable, Executor executor) {
        try {
          executor.execute(runnable);
        } catch (Exception e) { // sneaky checked exception
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/annotations/firAnnotationUtils.kt

    import org.jetbrains.kotlin.fir.symbols.resolvedCompilerRequiredAnnotations
    import org.jetbrains.kotlin.fir.utils.exceptions.withFirEntry
    import org.jetbrains.kotlin.name.*
    import org.jetbrains.kotlin.utils.addToStdlib.ifNotEmpty
    import org.jetbrains.kotlin.utils.exceptions.checkWithAttachment
    import java.lang.annotation.ElementType
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompletionCandidateChecker.kt

    import org.jetbrains.kotlin.psi.KtStatementExpression
    import org.jetbrains.kotlin.psi.psiUtil.getQualifiedExpressionForReceiver
    import org.jetbrains.kotlin.utils.exceptions.errorWithAttachment
    import org.jetbrains.kotlin.utils.exceptions.withPsiEntry
    
    internal class KtFirCompletionCandidateChecker(
        override val analysisSession: KtFirAnalysisSession,
        override val token: KtLifetimeToken,
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

    import org.jetbrains.kotlin.resolve.calls.util.getCalleeExpressionIfAny
    import org.jetbrains.kotlin.util.OperatorNameConventions
    import org.jetbrains.kotlin.utils.exceptions.errorWithAttachment
    import org.jetbrains.kotlin.utils.exceptions.withPsiEntry
    
    internal class KtFirImportOptimizer(
        private val analysisSession: KtFirAnalysisSession,
        override val token: KtLifetimeToken,
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 24.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

    import org.jetbrains.kotlin.psi.KtOperationReferenceExpression
    import org.jetbrains.kotlin.psi.psiUtil.parentsWithSelf
    import org.jetbrains.kotlin.utils.exceptions.errorWithAttachment
    import org.jetbrains.kotlin.utils.exceptions.withPsiEntry
    import java.util.Optional
    import kotlin.collections.ArrayList
    import kotlin.jvm.optionals.getOrNull
    import kotlin.math.sign
    
    @OptIn(KtAnalysisNonPublicApi::class)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 16 06:40:43 GMT 2024
    - 22.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirScopeProvider.kt

    import org.jetbrains.kotlin.name.FqName
    import org.jetbrains.kotlin.name.Name
    import org.jetbrains.kotlin.psi.KtElement
    import org.jetbrains.kotlin.psi.KtFile
    import org.jetbrains.kotlin.utils.exceptions.errorWithAttachment
    import org.jetbrains.kotlin.utils.exceptions.withPsiEntry
    
    internal class KtFirScopeProvider(
        override val analysisSession: KtFirAnalysisSession,
        private val builder: KtSymbolByFirBuilder,
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

    import org.jetbrains.kotlin.utils.addIfNotNull
    import org.jetbrains.kotlin.utils.addToStdlib.safeAs
    import org.jetbrains.kotlin.utils.exceptions.checkWithAttachment
    import org.jetbrains.kotlin.utils.exceptions.errorWithAttachment
    import org.jetbrains.kotlin.utils.exceptions.rethrowExceptionWithDetails
    import org.jetbrains.kotlin.utils.exceptions.withPsiEntry
    
    internal class KtFirCallResolver(
        override val analysisSession: KtFirAnalysisSession,
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 70.8K bytes
    - Viewed (1)
  10. tests/test_filter_pydantic_sub_model_pv2.py

    from typing import Optional
    
    import pytest
    from dirty_equals import HasRepr, IsDict, IsOneOf
    from fastapi import Depends, FastAPI
    from fastapi.exceptions import ResponseValidationError
    from fastapi.testclient import TestClient
    
    from .utils import needs_pydanticv2
    
    
    @pytest.fixture(name="client")
    def get_client():
        from pydantic import BaseModel, ValidationInfo, field_validator
    
        app = FastAPI()
    
        class ModelB(BaseModel):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
Back to top