Add JNI error codes
This commit is contained in:
parent
a6c17c2e86
commit
590535e6ec
3
deps/oblib/src/lib/ob_errno.h
vendored
3
deps/oblib/src/lib/ob_errno.h
vendored
@ -466,6 +466,9 @@ constexpr int OB_JNI_JAVA_HOME_NOT_FOUND_ERROR = -11058;
|
||||
constexpr int OB_JNI_ENSURE_CAPACTIY_ERROR = -11059;
|
||||
constexpr int OB_JNI_FIELD_NOT_FOUND_ERROR = -11060;
|
||||
constexpr int OB_JNI_OBJECT_NOT_FOUND_ERROR = -11061;
|
||||
constexpr int OB_JNI_JAVA_OPTS_NOT_FOUND_ERROR = -11072;
|
||||
constexpr int OB_JNI_CONNECTOR_PATH_NOT_FOUND_ERROR = -11073;
|
||||
constexpr int OB_JNI_NOT_ENABLE_JAVA_ENV_ERROR = -11074;
|
||||
constexpr int OB_MAX_RAISE_APPLICATION_ERROR = -20000;
|
||||
constexpr int OB_MIN_RAISE_APPLICATION_ERROR = -20999;
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -2807,6 +2807,16 @@ DEFINE_ERROR_EXT(OB_ERR_INCORRECT_STRING_VALUE_FOR_INET, -11062, ER_WRONG_VALUE_
|
||||
DEFINE_ERROR(OB_EXTERNAL_TABLE_FORMAT_ERROR, -11063, -1, "HY000", "missing format for external table")
|
||||
DEFINE_ERROR(OB_EXTERNAL_ACCESS_PATH_ERROR, -11064, -1, "HY000", "missing access path for external table");
|
||||
DEFINE_ERROR_EXT(OB_ORC_READ_ERROR, -11065, -1, "HY000", "fair to read orc file", "fair to read orc file, message: %s");
|
||||
DEFINE_ERROR_EXT(OB_JNI_JAVA_EXCEPTION_ERROR, -11066, -1, "HY000", "java occur exception", "Java exception: %.*s");
|
||||
DEFINE_ERROR_EXT(OB_JNI_ENV_SETUP_ERROR, -11067, -1, "HY000", "setup java env error", "Setup java env with error: %.*s");
|
||||
DEFINE_ERROR_EXT(OB_JNI_DETACH_THREAD_ERROR, -11068, -1, "HY000", "jni detach thread error", "Detach thread with error: %.*s");
|
||||
DEFINE_ERROR_EXT(OB_JNI_CREATE_JVM_ERROR, -11069, -1, "HY000", "jni create jvm error", "Create jvm with error: %.*s");
|
||||
DEFINE_ERROR_EXT(OB_JNI_DESTORY_JVM_ERROR, -11070, -1, "HY000", "jni destroy jvm error", "Destroy jvm with error: %.*s");
|
||||
DEFINE_ERROR_EXT(OB_JNI_PARAMS_ERROR, -11071, -1, "HY000", "jni params error", "Jni with params error: %.*s");
|
||||
DEFINE_ERROR_DEP(OB_JNI_JAVA_OPTS_NOT_FOUND_ERROR, -11072, -1, "HY000", "java opts could not be found");
|
||||
DEFINE_ERROR_DEP(OB_JNI_CONNECTOR_PATH_NOT_FOUND_ERROR, -11073, -1, "HY000", "connector path could not be found");
|
||||
DEFINE_ERROR_DEP(OB_JNI_NOT_ENABLE_JAVA_ENV_ERROR, -11074, -1, "HY000", "java env was not enabled");
|
||||
DEFINE_ERROR_EXT(OB_JNI_FORCE_CLOSE_JAVA_ENV_ERROR, -11075, -1, "HY000", "Forcefully close java env error", "Forcefully close java env with error: %.*s");
|
||||
// 余留位置
|
||||
////////////////////////////////////////////////////////////////
|
||||
// SQL扩展区段1:[-11000, -12000)
|
||||
|
@ -1944,6 +1944,13 @@ constexpr int OB_ERR_INCORRECT_STRING_VALUE_FOR_INET = -11062;
|
||||
constexpr int OB_EXTERNAL_TABLE_FORMAT_ERROR = -11063;
|
||||
constexpr int OB_EXTERNAL_ACCESS_PATH_ERROR = -11064;
|
||||
constexpr int OB_ORC_READ_ERROR = -11065;
|
||||
constexpr int OB_JNI_JAVA_EXCEPTION_ERROR = -11066;
|
||||
constexpr int OB_JNI_ENV_SETUP_ERROR = -11067;
|
||||
constexpr int OB_JNI_DETACH_THREAD_ERROR = -11068;
|
||||
constexpr int OB_JNI_CREATE_JVM_ERROR = -11069;
|
||||
constexpr int OB_JNI_DESTORY_JVM_ERROR = -11070;
|
||||
constexpr int OB_JNI_PARAMS_ERROR = -11071;
|
||||
constexpr int OB_JNI_FORCE_CLOSE_JAVA_ENV_ERROR = -11075;
|
||||
constexpr int OB_SP_RAISE_APPLICATION_ERROR = -20000;
|
||||
constexpr int OB_SP_RAISE_APPLICATION_ERROR_NUM = -21000;
|
||||
constexpr int OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN = -22998;
|
||||
@ -4319,6 +4326,16 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_EXTERNAL_TABLE_FORMAT_ERROR__USER_ERROR_MSG "missing format for external table"
|
||||
#define OB_EXTERNAL_ACCESS_PATH_ERROR__USER_ERROR_MSG "missing access path for external table"
|
||||
#define OB_ORC_READ_ERROR__USER_ERROR_MSG "fair to read orc file, message: %s"
|
||||
#define OB_JNI_JAVA_EXCEPTION_ERROR__USER_ERROR_MSG "Java exception: %.*s"
|
||||
#define OB_JNI_ENV_SETUP_ERROR__USER_ERROR_MSG "Setup java env with error: %.*s"
|
||||
#define OB_JNI_DETACH_THREAD_ERROR__USER_ERROR_MSG "Detach thread with error: %.*s"
|
||||
#define OB_JNI_CREATE_JVM_ERROR__USER_ERROR_MSG "Create jvm with error: %.*s"
|
||||
#define OB_JNI_DESTORY_JVM_ERROR__USER_ERROR_MSG "Destroy jvm with error: %.*s"
|
||||
#define OB_JNI_PARAMS_ERROR__USER_ERROR_MSG "Jni with params error: %.*s"
|
||||
#define OB_JNI_JAVA_OPTS_NOT_FOUND_ERROR__USER_ERROR_MSG "java opts could not be found"
|
||||
#define OB_JNI_CONNECTOR_PATH_NOT_FOUND_ERROR__USER_ERROR_MSG "connector path could not be found"
|
||||
#define OB_JNI_NOT_ENABLE_JAVA_ENV_ERROR__USER_ERROR_MSG "java env was not enabled"
|
||||
#define OB_JNI_FORCE_CLOSE_JAVA_ENV_ERROR__USER_ERROR_MSG "Forcefully close java env with error: %.*s"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR__USER_ERROR_MSG "%.*s"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR_NUM__USER_ERROR_MSG "error number argument to raise_application_error of '%d' is out of range"
|
||||
#define OB_CLOB_ONLY_SUPPORT_WITH_MULTIBYTE_FUN__USER_ERROR_MSG "CLOB or NCLOB in multibyte character set not supported"
|
||||
@ -9058,6 +9075,26 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_EXTERNAL_ACCESS_PATH_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11064, missing access path for external table"
|
||||
#define OB_ORC_READ_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11065, fair to read orc file, message: %s"
|
||||
#define OB_ORC_READ_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11065, fair to read orc file, message: %s"
|
||||
#define OB_JNI_JAVA_EXCEPTION_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11066, Java exception: %.*s"
|
||||
#define OB_JNI_JAVA_EXCEPTION_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11066, Java exception: %.*s"
|
||||
#define OB_JNI_ENV_SETUP_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11067, Setup java env with error: %.*s"
|
||||
#define OB_JNI_ENV_SETUP_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11067, Setup java env with error: %.*s"
|
||||
#define OB_JNI_DETACH_THREAD_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11068, Detach thread with error: %.*s"
|
||||
#define OB_JNI_DETACH_THREAD_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11068, Detach thread with error: %.*s"
|
||||
#define OB_JNI_CREATE_JVM_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11069, Create jvm with error: %.*s"
|
||||
#define OB_JNI_CREATE_JVM_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11069, Create jvm with error: %.*s"
|
||||
#define OB_JNI_DESTORY_JVM_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11070, Destroy jvm with error: %.*s"
|
||||
#define OB_JNI_DESTORY_JVM_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11070, Destroy jvm with error: %.*s"
|
||||
#define OB_JNI_PARAMS_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11071, Jni with params error: %.*s"
|
||||
#define OB_JNI_PARAMS_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11071, Jni with params error: %.*s"
|
||||
#define OB_JNI_JAVA_OPTS_NOT_FOUND_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11072, java opts could not be found"
|
||||
#define OB_JNI_JAVA_OPTS_NOT_FOUND_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11072, java opts could not be found"
|
||||
#define OB_JNI_CONNECTOR_PATH_NOT_FOUND_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11073, connector path could not be found"
|
||||
#define OB_JNI_CONNECTOR_PATH_NOT_FOUND_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11073, connector path could not be found"
|
||||
#define OB_JNI_NOT_ENABLE_JAVA_ENV_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11074, java env was not enabled"
|
||||
#define OB_JNI_NOT_ENABLE_JAVA_ENV_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11074, java env was not enabled"
|
||||
#define OB_JNI_FORCE_CLOSE_JAVA_ENV_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11075, Forcefully close java env with error: %.*s"
|
||||
#define OB_JNI_FORCE_CLOSE_JAVA_ENV_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11075, Forcefully close java env with error: %.*s"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR__ORA_USER_ERROR_MSG "ORA%06ld: %.*s"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR__OBE_USER_ERROR_MSG "ORA%06ld: %.*s"
|
||||
#define OB_SP_RAISE_APPLICATION_ERROR_NUM__ORA_USER_ERROR_MSG "ORA-21000: error number argument to raise_application_error of '%d' is out of range"
|
||||
@ -9077,7 +9114,7 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ERR_INVALID_DATE_MSG_FMT_V2__ORA_USER_ERROR_MSG "ORA-01861: Incorrect datetime value for column '%.*s' at row %ld"
|
||||
#define OB_ERR_INVALID_DATE_MSG_FMT_V2__OBE_USER_ERROR_MSG "OBE-01861: Incorrect datetime value for column '%.*s' at row %ld"
|
||||
|
||||
extern int g_all_ob_errnos[2371];
|
||||
extern int g_all_ob_errnos[2381];
|
||||
|
||||
const char *ob_error_name(const int oberr);
|
||||
const char* ob_error_cause(const int oberr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user