error
Use the error API to collect exception-type events.
Method signature
The following code shows the method signature of the error API:
copy
public func error(name: String, parameters: [LogContentItem]? = nil, bizType: String? = nil)Request parameters
Name | Type | Description |
name | String | Event name. |
parameters | Event collection parameters. | |
bizType | String? | Business Type. |
Response parameters
N/A
Exception
N/A
Sample
Swift
copy
let parameters: [LogContentItem] = [
.contentId("contentIdDummy"),
.deliveryPlanId("deliveryPlanIdDummy"),
.extras(["extras1": "extras1Dummy"]),
]
ComponentManager.ASAP?.logComponent?.error(name: "error_event", parameters: parameters,bizType:"ASAP")