Files
simapi-cj/src/exceptions/SimApiException.cj
T
2026-08-16 12:46:15 +08:00

19 lines
465 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 许可证。
*/
package simapi.exceptions
/**
* API 错误捕获异常:携带业务错误码,由异常中间件统一转换为 HTTP 200 + JSON。
*/
public class SimApiException <: Exception {
public let code: Int64
public init(code: Int64, message!: String = "") {
super(message)
this.code = code
}
}