M3D / M3D / Utility / Exception
Class: Exception
File
异常类
Description
异常说明,包括异常码,以及异常说明
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new Exception(): Exception
Returns
Properties
code
• code: string
异常码,格式xx.xx.xx
description
• description: string
Methods
get
▸ get(code
, description
): Exception
Parameters
Name | Type |
---|---|
code | string |
description | string |
Returns
Description
Error类设置类
new
▸ new(moudleCode
, type
, description
): Exception
Parameters
Name | Type | Description |
---|---|---|
moudleCode | string | 异常对应类 |
type | number | 异常类型 |
description | string | 异常描述 |
Returns
Description
实例化异常对象