Files
simapi-cj/src/configurations/SimApiExceptionOptions.cj
T

21 lines
553 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2025 SimcuTeam. All rights reserved.
* 移植自 C# 项目 SimApiE:\simcu\simapi-net),遵循 MIT 许可证。
* 对齐 C# 的 Configurations/SimApiExceptionOptions.cs。
*/
package simcu::simapi.configurations
import std.collection.*
/**
* 异常处理相关配置(默认值与 C# 一致)。
*/
public class SimApiExceptionOptions {
/**
* 跳过不做业务错误处理的状态码(默认 [200, 301, 302])。
*/
public var skipStatusCodes: HashSet<Int64> = HashSet<Int64>([200, 301, 302])
}