English
Home > SYS_ApiError > (constructor)
SYS_ApiError.(constructor)
创建扩展 API 错误
Signature
typescript
function constructor(code: ESYS_ApiErrorCode, message?: string, details?: Record<string, unknown>);1
Parameters
Parameter | Type | Description |
|---|---|---|
code | 错误码 | |
message | string | (Optional) 错误描述,默认与错误码一致 |
details | Record<string, unknown> | (Optional) 错误上下文 |