2026-08-16 12:46:15 +08:00
|
|
|
|
/*
|
|
|
|
|
|
* Copyright (c) 2025 SimcuTeam. All rights reserved.
|
|
|
|
|
|
* 移植自 C# 项目 SimApi(E:\simcu\simapi-net),遵循 MIT 许可证。
|
|
|
|
|
|
* 对齐 C# 的 Configurations/SimApiExceptionOptions.cs。
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2026-08-18 04:23:07 +08:00
|
|
|
|
package simcu::simapi.configurations
|
2026-08-16 12:46:15 +08:00
|
|
|
|
|
|
|
|
|
|
import std.collection.*
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 异常处理相关配置(默认值与 C# 一致)。
|
|
|
|
|
|
*/
|
|
|
|
|
|
public class SimApiExceptionOptions {
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 跳过不做业务错误处理的状态码(默认 [200, 301, 302])。
|
|
|
|
|
|
*/
|
|
|
|
|
|
public var skipStatusCodes: HashSet<Int64> = HashSet<Int64>([200, 301, 302])
|
|
|
|
|
|
|
|
|
|
|
|
}
|