Minor, add jni error placeholder
This commit is contained in:
9
deps/oblib/src/lib/ob_errno.h
vendored
9
deps/oblib/src/lib/ob_errno.h
vendored
@ -453,6 +453,15 @@ constexpr int OB_HDFS_MALFORMED_URI = -11042;
|
||||
constexpr int OB_HDFS_INVALID_ARGUMENT = -11043;
|
||||
constexpr int OB_HDFS_NOT_IMPLEMENT = -11044;
|
||||
constexpr int OB_HDFS_ERROR = -11045;
|
||||
constexpr int OB_JNI_ERROR = -11053;
|
||||
constexpr int OB_JNI_CLASS_NOT_FOUND_ERROR = -11054;
|
||||
constexpr int OB_JNI_METHOD_NOT_FOUND_ERROR = -11055;
|
||||
constexpr int OB_JNI_ENV_ERROR = -11056;
|
||||
constexpr int OB_JNI_DELETE_REF_ERROR = -11057;
|
||||
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_MAX_RAISE_APPLICATION_ERROR = -20000;
|
||||
constexpr int OB_MIN_RAISE_APPLICATION_ERROR = -20999;
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -2759,6 +2759,15 @@ DEFINE_ERROR_EXT(OB_EXCEED_QUERY_MEM_LIMIT, -11049, -1, "HY000", "Exceed query m
|
||||
DEFINE_ERROR_EXT(OB_ODPS_ERROR, -11050, -1, "HY000", "Odps driver throw exception", "Odps driver throw exception: ExceptionMsg=%s")
|
||||
DEFINE_ERROR_EXT(OB_EXTERNAL_ODPS_COLUMN_TYPE_MISMATCH, -11051, -1, "HY000", "Column type mismatch between the ODPS table and the OceanBase table", "Column type mismatch between the ODPS table and the OceanBase table: OdpsColumnType=%s TableColumnType=%s")
|
||||
DEFINE_ERROR_EXT(OB_EXTERNAL_ODPS_UNEXPECTED_ERROR, -11052, -1, "HY000", "unexpected error for exteran odps table", "unexpected error for exteran odps table:%s")
|
||||
DEFINE_ERROR_DEP(OB_JNI_ERROR, -11053, -1, "HY000", "unexpected error for jni")
|
||||
DEFINE_ERROR_DEP(OB_JNI_CLASS_NOT_FOUND_ERROR, -11054, -1, "HY000", "class could not be found during jni operation")
|
||||
DEFINE_ERROR_DEP(OB_JNI_METHOD_NOT_FOUND_ERROR, -11055, -1, "HY000", "method could not be found during jni operation")
|
||||
DEFINE_ERROR_DEP(OB_JNI_ENV_ERROR, -11056, -1, "HY000", "JNI env could not be found")
|
||||
DEFINE_ERROR_DEP(OB_JNI_DELETE_REF_ERROR, -11057, -1, "HY000", "JNI env could not delete ref")
|
||||
DEFINE_ERROR_DEP(OB_JNI_JAVA_HOME_NOT_FOUND_ERROR, -11058, -1, "HY000", "JAVA_HOME could not be found")
|
||||
DEFINE_ERROR_DEP(OB_JNI_ENSURE_CAPACTIY_ERROR, -11059, -1, "HY000", "JNI cound not ensure capacity")
|
||||
DEFINE_ERROR_DEP(OB_JNI_FIELD_NOT_FOUND_ERROR, -11060, -1, "HY000", "field could not be found during jni operation")
|
||||
DEFINE_ERROR_DEP(OB_JNI_OBJECT_NOT_FOUND_ERROR, -11061, -1, "HY000", "object could not be found during jni operation")
|
||||
|
||||
// 余留位置
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
@ -4248,6 +4248,15 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_ODPS_ERROR__USER_ERROR_MSG "Odps driver throw exception: ExceptionMsg=%s"
|
||||
#define OB_EXTERNAL_ODPS_COLUMN_TYPE_MISMATCH__USER_ERROR_MSG "Column type mismatch between the ODPS table and the OceanBase table: OdpsColumnType=%s TableColumnType=%s"
|
||||
#define OB_EXTERNAL_ODPS_UNEXPECTED_ERROR__USER_ERROR_MSG "unexpected error for exteran odps table:%s"
|
||||
#define OB_JNI_ERROR__USER_ERROR_MSG "unexpected error for jni"
|
||||
#define OB_JNI_CLASS_NOT_FOUND_ERROR__USER_ERROR_MSG "class could not be found during jni operation"
|
||||
#define OB_JNI_METHOD_NOT_FOUND_ERROR__USER_ERROR_MSG "method could not be found during jni operation"
|
||||
#define OB_JNI_ENV_ERROR__USER_ERROR_MSG "JNI env could not be found"
|
||||
#define OB_JNI_DELETE_REF_ERROR__USER_ERROR_MSG "JNI env could not delete ref"
|
||||
#define OB_JNI_JAVA_HOME_NOT_FOUND_ERROR__USER_ERROR_MSG "JAVA_HOME could not be found"
|
||||
#define OB_JNI_ENSURE_CAPACTIY_ERROR__USER_ERROR_MSG "JNI cound not ensure capacity"
|
||||
#define OB_JNI_FIELD_NOT_FOUND_ERROR__USER_ERROR_MSG "field could not be found during jni operation"
|
||||
#define OB_JNI_OBJECT_NOT_FOUND_ERROR__USER_ERROR_MSG "object could not be found during jni operation"
|
||||
#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"
|
||||
@ -8903,6 +8912,24 @@ constexpr int OB_ERR_INVALID_DATE_MSG_FMT_V2 = -4219;
|
||||
#define OB_EXTERNAL_ODPS_COLUMN_TYPE_MISMATCH__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11051, Column type mismatch between the ODPS table and the OceanBase table: OdpsColumnType=%s TableColumnType=%s"
|
||||
#define OB_EXTERNAL_ODPS_UNEXPECTED_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11052, unexpected error for exteran odps table:%s"
|
||||
#define OB_EXTERNAL_ODPS_UNEXPECTED_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11052, unexpected error for exteran odps table:%s"
|
||||
#define OB_JNI_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11053, unexpected error for jni"
|
||||
#define OB_JNI_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11053, unexpected error for jni"
|
||||
#define OB_JNI_CLASS_NOT_FOUND_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11054, class could not be found during jni operation"
|
||||
#define OB_JNI_CLASS_NOT_FOUND_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11054, class could not be found during jni operation"
|
||||
#define OB_JNI_METHOD_NOT_FOUND_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11055, method could not be found during jni operation"
|
||||
#define OB_JNI_METHOD_NOT_FOUND_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11055, method could not be found during jni operation"
|
||||
#define OB_JNI_ENV_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11056, JNI env could not be found"
|
||||
#define OB_JNI_ENV_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11056, JNI env could not be found"
|
||||
#define OB_JNI_DELETE_REF_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11057, JNI env could not delete ref"
|
||||
#define OB_JNI_DELETE_REF_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11057, JNI env could not delete ref"
|
||||
#define OB_JNI_JAVA_HOME_NOT_FOUND_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11058, JAVA_HOME could not be found"
|
||||
#define OB_JNI_JAVA_HOME_NOT_FOUND_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11058, JAVA_HOME could not be found"
|
||||
#define OB_JNI_ENSURE_CAPACTIY_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11059, JNI cound not ensure capacity"
|
||||
#define OB_JNI_ENSURE_CAPACTIY_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11059, JNI cound not ensure capacity"
|
||||
#define OB_JNI_FIELD_NOT_FOUND_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11060, field could not be found during jni operation"
|
||||
#define OB_JNI_FIELD_NOT_FOUND_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11060, field could not be found during jni operation"
|
||||
#define OB_JNI_OBJECT_NOT_FOUND_ERROR__ORA_USER_ERROR_MSG "ORA-00600: internal error code, arguments: -11061, object could not be found during jni operation"
|
||||
#define OB_JNI_OBJECT_NOT_FOUND_ERROR__OBE_USER_ERROR_MSG "OBE-00600: internal error code, arguments: -11061, object could not be found during jni operation"
|
||||
#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"
|
||||
@ -8922,7 +8949,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[2329];
|
||||
extern int g_all_ob_errnos[2338];
|
||||
|
||||
const char *ob_error_name(const int oberr);
|
||||
const char* ob_error_cause(const int oberr);
|
||||
|
Reference in New Issue
Block a user