Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 461 for Krause (0.22 sec)

  1. docs_src/security/tutorial004_an_py39.py

            username: str = payload.get("sub")
            if username is None:
                raise credentials_exception
            token_data = TokenData(username=username)
        except JWTError:
            raise credentials_exception
        user = get_user(fake_users_db, username=token_data.username)
        if user is None:
            raise credentials_exception
        return user
    
    
    async def get_current_active_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial008b.py

            yield "Rick"
        except OwnerError as e:
            raise HTTPException(status_code=400, detail=f"Owner error: {e}")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id not in data:
            raise HTTPException(status_code=404, detail="Item not found")
        item = data[item_id]
        if item["owner"] != username:
            raise OwnerError(username)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Dec 26 20:37:34 GMT 2023
    - 735 bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial008b_an.py

        except OwnerError as e:
            raise HTTPException(status_code=400, detail=f"Owner error: {e}")
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id not in data:
            raise HTTPException(status_code=404, detail="Item not found")
        item = data[item_id]
        if item["owner"] != username:
            raise OwnerError(username)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Dec 26 20:37:34 GMT 2023
    - 785 bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

        Note over client,tasks: Can raise exception for dependency, handled after response is sent
        Note over client,operation: Can raise HTTPException and can change the response
        client ->> dep: Start request
        Note over dep: Run code up to yield
        opt raise
            dep -->> handler: Raise HTTPException
            handler -->> client: HTTP error response
            dep -->> dep: Raise other exception
        end
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 04:21:06 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/exception/InstantiationRuntimeException.java

         *
         * @param targetClass
         *            ターゲットクラス
         * @param cause
         *            原因となった例外
         */
        public InstantiationRuntimeException(final Class<?> targetClass, final InstantiationException cause) {
            super("ECL0041", asArray(targetClass.getName(), cause), cause);
            this.targetClass = targetClass;
        }
    
        @Override
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/query/BooleanQueryCommand.java

            final BoolQueryBuilder boolQuery = QueryBuilders.boolQuery();
            for (final BooleanClause clause : booleanQuery.clauses()) {
                final QueryBuilder queryBuilder = getQueryProcessor().execute(context, clause.getQuery(), boost);
                if (queryBuilder != null) {
                    switch (clause.getOccur()) {
                    case MUST:
                        boolQuery.must(queryBuilder);
                        break;
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

            } catch (ComponentLookupException e) {
                Throwable cause = e.getCause();
                while (cause != null && !(cause instanceof LinkageError) && !(cause instanceof ClassNotFoundException)) {
                    cause = cause.getCause();
                }
    
                if ((cause instanceof NoClassDefFoundError) || (cause instanceof ClassNotFoundException)) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 14:13:36 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

          Throwable cause, Class<X> exceptionClass) throws X {
        if (cause instanceof Error) {
          throw new ExecutionError((Error) cause);
        }
        if (cause instanceof RuntimeException) {
          throw new UncheckedExecutionException(cause);
        }
        throw newWithCause(exceptionClass, cause);
      }
    
      /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 10.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/exception/IllegalBlockSizeRuntimeException.java

        private static final long serialVersionUID = 1L;
    
        public IllegalBlockSizeRuntimeException(final IllegalBlockSizeException cause) {
            super("ECL0105", new Object[] { cause.getMessage() }, cause);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/exception/BadPaddingRuntimeException.java

    public class BadPaddingRuntimeException extends ClRuntimeException {
    
        private static final long serialVersionUID = 1L;
    
        public BadPaddingRuntimeException(final BadPaddingException cause) {
            super("ECL0105", new Object[] { cause.getMessage() }, cause);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1008 bytes
    - Viewed (0)
Back to top