- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 393 for raises (0.08 sec)
-
internal/bucket/lifecycle/expiration.go
) // ExpirationDays is a type alias to unmarshal Days in Expiration type ExpirationDays int // UnmarshalXML parses number of days from Expiration and validates if // greater than zero func (eDays *ExpirationDays) UnmarshalXML(d *xml.Decoder, startElement xml.StartElement) error { var numDays int
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Feb 21 20:28:34 UTC 2024 - 6.6K bytes - Viewed (0) -
guava-gwt/src/com/google/common/cache/Cache.gwt.xml
writing it has test supersource but no prod supersource. GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. This causes it to fail to find AtomicLongMapTest. Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. GWT is happy to ignore us
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 1.6K bytes - Viewed (0) -
guava-gwt/test/com/google/common/collect/testing/Testing.gwt.xml
writing it has test supersource but no prod supersource. GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. This causes it to fail to find AtomicLongMapTest. Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. GWT is happy to ignore us
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-gwt/src/com/google/common/net/Net.gwt.xml
writing it has test supersource but no prod supersource. GWT happens to use the prod .gwt.xml, so it looks for no supersource for tests, either. This causes it to fail to find AtomicLongMapTest. Our workaround is to tell GWT that util.concurrent and all other packages have prod supersource, even if they have none. GWT is happy to ignore us
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jul 19 16:02:36 UTC 2024 - 1.7K bytes - Viewed (0) -
docs/zh/docs/tutorial/handling-errors.md
``` ### 触发 `HTTPException` `HTTPException` 是额外包含了和 API 有关数据的常规 Python 异常。 因为是 Python 异常,所以不能 `return`,只能 `raise`。 如在调用*路径操作函数*里的工具函数时,触发了 `HTTPException`,FastAPI 就不再继续执行*路径操作函数*中的后续代码,而是立即终止请求,并把 `HTTPException` 的 HTTP 错误发送至客户端。 在介绍依赖项与安全的章节中,您可以了解更多用 `raise` 异常代替 `return` 值的优势。 本例中,客户端用 `ID` 请求的 `item` 不存在时,触发状态码为 `404` 的异常: ```Python hl_lines="11"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
路径装饰器依赖项也可以使用普通的依赖项*函数*。 ### 依赖项的需求项 路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项: ```Python hl_lines="6 11" {!../../docs_src/dependencies/tutorial006.py!} ``` ### 触发异常 路径装饰器依赖项与正常的依赖项一样,可以 `raise` 异常: ```Python hl_lines="8 13" {!../../docs_src/dependencies/tutorial006.py!} ``` ### 返回值 无论路径装饰器依赖项是否返回值,路径操作都不会使用这些值。 因此,可以复用在其他位置使用过的、(能返回值的)普通依赖项,即使没有使用这个值,也会执行该依赖项:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.7K bytes - Viewed (0) -
internal/event/targetid.go
if err := json.Unmarshal(data, &s); err != nil { return err } targetID, err := parseTargetID(s) if err != nil { return err } *tid = *targetID return nil } // parseTargetID - parses string to TargetID. func parseTargetID(s string) (*TargetID, error) { tokens := strings.Split(s, ":") if len(tokens) != 2 { return nil, fmt.Errorf("invalid TargetID format '%v'", s) } return &TargetID{
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.8K bytes - Viewed (0) -
.github/actions/people/app/main.py
) logging.error(response.text) raise RuntimeError(response.text) data = response.json() if "errors" in data: logging.error(f"Errors in response, after: {after}, category_id: {category_id}") logging.error(data["errors"]) logging.error(response.text) raise RuntimeError(response.text) return data
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 04:13:50 UTC 2024 - 19.2K bytes - Viewed (1) -
scripts/mkdocs_hooks.py
resolve_file(item=values[0], files=files, config=config) elif isinstance(values[0], list): resolve_files(items=values[0], files=files, config=config) else: raise ValueError(f"Unexpected value: {values}") def on_files(files: Files, *, config: MkDocsConfig) -> Files: resolve_files(items=config.nav or [], files=files, config=config) if "logo" in config.theme:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Aug 17 21:20:31 UTC 2024 - 5.2K bytes - Viewed (0) -
internal/event/arn.go
if err := d.DecodeElement(&s, &start); err != nil { return err } parsedARN, err := parseARN(s) if err != nil { return err } *arn = *parsedARN return nil } // parseARN - parses string to ARN. func parseARN(s string) (*ARN, error) { // ARN must be in the format of arn:minio:sqs:<REGION>:<ID>:<TYPE> if !strings.HasPrefix(s, "arn:minio:sqs:") { return nil, &ErrInvalidARN{s} }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.1K bytes - Viewed (0)