@@ -548,14 +548,37 @@ def _raise_not_supported(feature: str) -> None:
548548 ERR_ACCESS_TOKEN_REQUIRES_TCPS : (
549549 "access_token requires use of the tcps protocol"
550550 ),
551- ERR_ARGS_MUST_BE_LIST_OR_TUPLE : "arguments must be a list or tuple" ,
552551 ERR_ARGS_AND_KEYWORD_ARGS : (
553552 "expecting positional arguments or keyword arguments, not both"
554553 ),
554+ ERR_ARGS_MUST_BE_LIST_OR_TUPLE : "arguments must be a list or tuple" ,
555555 ERR_ARRAY_DML_ROW_COUNTS_NOT_ENABLED : (
556556 "array DML row counts mode is not enabled"
557557 ),
558558 ERR_ARRAYS_OF_ARRAYS : "arrays of arrays are not supported" ,
559+ ERR_ARROW_C_API_ERROR : (
560+ "Arrow C Data Interface operation failed with error code {code}"
561+ ),
562+ ERR_ARROW_SPARSE_VECTOR_NOT_ALLOWED : (
563+ "Apache Arrow format does not support sparse vectors with flexible "
564+ "dimensions"
565+ ),
566+ ERR_ARROW_UNSUPPORTED_CHILD_DATA_FORMAT : (
567+ 'conversion from list with child Arrow format "{schema_format}" to '
568+ "Oracle Database vector is not supported"
569+ ),
570+ ERR_ARROW_UNSUPPORTED_DATA_FORMAT : (
571+ 'conversion from Arrow format "{schema_format}" to Oracle Database '
572+ "is not supported"
573+ ),
574+ ERR_ARROW_UNSUPPORTED_DATA_TYPE : (
575+ "conversion from Oracle Database type {db_type_name} to Apache "
576+ "Arrow format is not supported"
577+ ),
578+ ERR_ARROW_UNSUPPORTED_VECTOR_FORMAT : (
579+ "flexible vector formats are not supported. Only fixed 'FLOAT32', "
580+ "'FLOAT64', 'INT8' or 'BINARY' formats are supported"
581+ ),
559582 ERR_BUFFER_LENGTH_INSUFFICIENT : (
560583 "internal error: buffer of length {actual_buffer_len} "
561584 "insufficient to hold {required_buffer_len} bytes"
@@ -572,15 +595,16 @@ def _raise_not_supported(feature: str) -> None:
572595 "column truncated to {col_value_len} {unit}. "
573596 "Untruncated was {actual_len}"
574597 ),
598+ ERR_CONNECTION_CLOSED : "the database or network closed the connection" ,
575599 ERR_CONNECTION_FAILED : (
576600 "cannot connect to database (CONNECTION_ID={connection_id})."
577601 ),
578602 ERR_CONTENT_INVALID_AFTER_NUMBER : "invalid number (content after number)" ,
579603 ERR_CURSOR_DIFF_CONNECTION : (
580604 "binding a cursor from a different connection is not supported"
581605 ),
582- ERR_CURSOR_NOT_OPEN : "cursor is not open" ,
583606 ERR_CURSOR_HAS_BEEN_CLOSED : "cursor has been closed by the database" ,
607+ ERR_CURSOR_NOT_OPEN : "cursor is not open" ,
584608 ERR_DBOBJECT_ATTR_MAX_SIZE_VIOLATED : (
585609 "attribute {attr_name} of type {type_name} exceeds its maximum size "
586610 "(actual: {actual_size}, maximum: {max_size})"
@@ -666,6 +690,9 @@ def _raise_not_supported(feature: str) -> None:
666690 ERR_INVALID_LOB_AMOUNT : "LOB amount must be greater than zero" ,
667691 ERR_INVALID_LOB_OFFSET : "LOB offset must be greater than zero" ,
668692 ERR_INVALID_MAKEDSN_ARG : '"{name}" argument contains invalid values' ,
693+ ERR_INVALID_NETWORK_NAME : (
694+ '"{name}" includes characters that are not allowed'
695+ ),
669696 ERR_INVALID_NUMBER : "invalid number" ,
670697 ERR_INVALID_OBJECT_TYPE_NAME : 'invalid object type name: "{name}"' ,
671698 ERR_INVALID_OCI_ATTR_TYPE : "invalid OCI attribute type {attr_type}" ,
@@ -731,9 +758,9 @@ def _raise_not_supported(feature: str) -> None:
731758 ERR_MISSING_CONNECT_DESCRIPTOR : (
732759 '"connect_descriptor" key missing from configuration'
733760 ),
734- ERR_MISSING_FILE : "file '{file_name}' is missing or unreadable" ,
735761 ERR_MISSING_ENDING_DOUBLE_QUOTE : 'missing ending quote (")' ,
736762 ERR_MISSING_ENDING_SINGLE_QUOTE : "missing ending quote (')" ,
763+ ERR_MISSING_FILE : "file '{file_name}' is missing or unreadable" ,
737764 ERR_MISSING_TYPE_NAME_FOR_OBJECT_VAR : (
738765 "no object type specified for object variable"
739766 ),
@@ -828,11 +855,19 @@ def _raise_not_supported(feature: str) -> None:
828855 "scroll operation would go out of the result set"
829856 ),
830857 ERR_SELF_BIND_NOT_SUPPORTED : "binding to self is not supported" ,
831- ERR_CONNECTION_CLOSED : "the database or network closed the connection" ,
832858 ERR_SERVER_VERSION_NOT_SUPPORTED : (
833859 "connections to this database server version are not supported "
834860 "by python-oracledb in thin mode"
835861 ),
862+ ERR_SESSIONLESS_ALREADY_ACTIVE : (
863+ "suspend, commit, or rollback the current active sessionless "
864+ "transaction before beginning or resuming another one"
865+ ),
866+ ERR_SESSIONLESS_DIFFERING_METHODS : (
867+ "suspending or resuming a Sessionless Transaction can be done with "
868+ "DBMS_TRANSACTION or with python-oracledb, but not both"
869+ ),
870+ ERR_SESSIONLESS_INACTIVE : ("no Sessionless Transaction is active" ),
836871 ERR_TDS_TYPE_NOT_SUPPORTED : "Oracle TDS data type {num} is not supported" ,
837872 ERR_THICK_MODE_ENABLED : (
838873 "python-oracledb thin mode cannot be used because thick mode has "
@@ -850,7 +885,6 @@ def _raise_not_supported(feature: str) -> None:
850885 ERR_TOO_MANY_BATCH_ERRORS : (
851886 "the number of batch errors from executemany() exceeds 65535"
852887 ),
853- ERR_UNEXPECTED_PIPELINE_FAILURE : "unexpected pipeline failure" ,
854888 ERR_UNEXPECTED_DATA : "unexpected data received: {data}" ,
855889 ERR_UNEXPECTED_END_OF_DATA : (
856890 "unexpected end of data: want {num_bytes_wanted} bytes but "
@@ -864,6 +898,7 @@ def _raise_not_supported(feature: str) -> None:
864898 "the listener refused the connection but an unexpected error "
865899 "format was returned"
866900 ),
901+ ERR_UNEXPECTED_PIPELINE_FAILURE : "unexpected pipeline failure" ,
867902 ERR_UNEXPECTED_XML_TYPE : "unexpected XMLType with flag {flag}" ,
868903 ERR_UNKNOWN_SERVER_PIGGYBACK : (
869904 "internal error: unknown server side piggyback opcode {opcode}"
@@ -874,12 +909,12 @@ def _raise_not_supported(feature: str) -> None:
874909 ERR_UNKNOWN_TRANSACTION_SYNC_VERSION : (
875910 "internal error: unknown transaction sync version {version}"
876911 ),
877- ERR_UNSUPPORTED_PIPELINE_OPERATION : (
878- "unsupported pipeline operation type: {op_type}"
879- ),
880912 ERR_UNSUPPORTED_INBAND_NOTIFICATION : (
881913 "unsupported in-band notification with error number {err_num}"
882914 ),
915+ ERR_UNSUPPORTED_PIPELINE_OPERATION : (
916+ "unsupported pipeline operation type: {op_type}"
917+ ),
883918 ERR_UNSUPPORTED_PYTHON_TYPE_FOR_DB_TYPE : (
884919 "unsupported Python type {py_type_name} for database type "
885920 "{db_type_name}"
@@ -920,39 +955,4 @@ def _raise_not_supported(feature: str) -> None:
920955 "scroll mode must be relative, absolute, first or last"
921956 ),
922957 WRN_COMPILATION_ERROR : "creation succeeded with compilation errors" ,
923- ERR_INVALID_NETWORK_NAME : (
924- '"{name}" includes characters that are not allowed'
925- ),
926- ERR_ARROW_SPARSE_VECTOR_NOT_ALLOWED : (
927- "Apache Arrow format does not support sparse vectors with flexible "
928- "dimensions"
929- ),
930- ERR_ARROW_UNSUPPORTED_CHILD_DATA_FORMAT : (
931- 'conversion from list with child Arrow format "{schema_format}" to '
932- "Oracle Database vector is not supported"
933- ),
934- ERR_ARROW_UNSUPPORTED_DATA_FORMAT : (
935- 'conversion from Arrow format "{schema_format}" to Oracle Database '
936- "is not supported"
937- ),
938- ERR_ARROW_UNSUPPORTED_DATA_TYPE : (
939- "conversion from Oracle Database type {db_type_name} to Apache "
940- "Arrow format is not supported"
941- ),
942- ERR_ARROW_C_API_ERROR : (
943- "Arrow C Data Interface operation failed with error code {code}"
944- ),
945- ERR_ARROW_UNSUPPORTED_VECTOR_FORMAT : (
946- "flexible vector formats are not supported. Only fixed 'FLOAT32', "
947- "'FLOAT64', 'INT8' or 'BINARY' formats are supported"
948- ),
949- ERR_SESSIONLESS_DIFFERING_METHODS : (
950- "suspending or resuming a Sessionless Transaction can be done with "
951- "DBMS_TRANSACTION or with python-oracledb, but not both"
952- ),
953- ERR_SESSIONLESS_ALREADY_ACTIVE : (
954- "suspend, commit, or rollback the current active sessionless "
955- "transaction before beginning or resuming another one"
956- ),
957- ERR_SESSIONLESS_INACTIVE : ("no Sessionless Transaction is active" ),
958958}
0 commit comments