BBASMPlugin+Exception.h
1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// BBASMPlugin+Exception.h
// BBAMNP
//
// Created by baidu on 2020/5/20.
// Copyright © 2020 Baidu. All rights reserved.
//
#import "BBASMPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface BBASMPlugin (Exception)
/**
* 描 述:
* 示 例: baiduboxapp://swanAPI/handleException?params=$params&callback=$callback
* 文 档: http://es.baidu-int.com/index#/apidetail/1150
* 备 注:
* ********** description ************
* @name: boxjs.handleException
* @authority: swanAPI
* @path: /handleException
* @args: [{"name": "code", "value": "string="}, {"name": "msg", "value": "string="},{"name": "data", "value": {"type": {"path": "string="}, "isRequired": false}}]
* @config: {"swan": {"web": {"invoke": "swan.message.url", "handler": "bridge"}, "jsc": {"invoke": "swan.method.json", "method": "_naSwan.bridge.utils.handleException"}}}
*/
- (void)handleException:(BBASchemeDispatcher *)dispatcher;
/// 前端捕获到异常
/// @param appID 对应appID
/// @param params 参数
+ (NSDictionary *)handleExceptionWithAppID:(NSString *)appID
params:(NSDictionary *)params;
@end
NS_ASSUME_NONNULL_END