提交 | 用户 | 时间
|
7fd198
|
1 |
package com.iailab.module.model.mdk.common.exceptions; |
潘 |
2 |
|
|
3 |
//类 职 责:模型调用异常 |
|
4 |
public class ModelInvokeException extends Exception { |
|
5 |
public final static String errorGetModelEntity = "获取modelEntity失败"; |
|
6 |
public final static String errorGetModelInputCount = "获取Model输入信息失败"; |
|
7 |
public final static String errorGetModelOutputCount = "获取Model输出信息失败"; |
|
8 |
public final static String errorGetModelArithParam = "获取模型的算法参数失败"; |
|
9 |
public final static String errorGetModelFile = "获取模型文件失败"; |
|
10 |
|
|
11 |
private Throwable cause; |
|
12 |
|
|
13 |
public ModelInvokeException() { |
|
14 |
|
|
15 |
} |
|
16 |
|
|
17 |
public ModelInvokeException(String msg) { |
|
18 |
super(msg); |
|
19 |
} |
|
20 |
|
|
21 |
public ModelInvokeException(String msg, Throwable cause) { |
|
22 |
super(msg); |
|
23 |
this.cause = cause; |
|
24 |
} |
|
25 |
} |