public static enum OrtException.OrtErrorCode extends java.lang.Enum<OrtException.OrtErrorCode>
Enum Constant and Description |
---|
ORT_ENGINE_ERROR |
ORT_EP_FAIL |
ORT_FAIL |
ORT_INVALID_ARGUMENT |
ORT_INVALID_GRAPH |
ORT_INVALID_PROTOBUF |
ORT_JAVA_UNKNOWN |
ORT_MODEL_LOADED |
ORT_NO_MODEL |
ORT_NO_SUCHFILE |
ORT_NOT_IMPLEMENTED |
ORT_OK |
ORT_RUNTIME_EXCEPTION |
Modifier and Type | Method and Description |
---|---|
static OrtException.OrtErrorCode |
mapFromInt(int value)
Maps from an int in native land into an OrtErrorCode instance.
|
static OrtException.OrtErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrtException.OrtErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrtException.OrtErrorCode ORT_JAVA_UNKNOWN
public static final OrtException.OrtErrorCode ORT_OK
public static final OrtException.OrtErrorCode ORT_FAIL
public static final OrtException.OrtErrorCode ORT_INVALID_ARGUMENT
public static final OrtException.OrtErrorCode ORT_NO_SUCHFILE
public static final OrtException.OrtErrorCode ORT_NO_MODEL
public static final OrtException.OrtErrorCode ORT_ENGINE_ERROR
public static final OrtException.OrtErrorCode ORT_RUNTIME_EXCEPTION
public static final OrtException.OrtErrorCode ORT_INVALID_PROTOBUF
public static final OrtException.OrtErrorCode ORT_MODEL_LOADED
public static final OrtException.OrtErrorCode ORT_NOT_IMPLEMENTED
public static final OrtException.OrtErrorCode ORT_INVALID_GRAPH
public static final OrtException.OrtErrorCode ORT_EP_FAIL
public static OrtException.OrtErrorCode[] values()
for (OrtException.OrtErrorCode c : OrtException.OrtErrorCode.values()) System.out.println(c);
public static OrtException.OrtErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static OrtException.OrtErrorCode mapFromInt(int value)
value
- The value to lookup.