4#define _NUODB_ERROR_H_ 1
10#ifndef _NUODB_STRUCTS_H_
119 NUODB_UNKNOWN_ERROR = -63,
150 _NuoDB_Error_state_t* _state;
247NUODB_CAPI
void NUODB_CAPICALL NuoDB_Error_setSqlState(
const char* sqlState);
NUODB_CAPI NuoDB_Error *NUODB_CAPICALL NuoDB_Error_getLastErrorInfo()
Obtain the last known error.
NuoDB_Status_enum
Enum defining status codes used by the C-Language API.
Definition error.h:24
@ NUODB_TRUNCATION_ERROR
A truncation error has occurred during execution of an SQL statement, Example: "Assignment of n bytes...
Definition error.h:39
@ NUODB_OUT_OF_RECORD_MEMORY_ERROR
Unused.
Definition error.h:73
@ NUODB_DATABASE_DAMAGED
Unused.
Definition error.h:63
@ NUODB_RUNTIME_ERROR
An error has occurred during execution of an SQL statement, Example: "ResultSet has been closed".
Definition error.h:32
@ NUODB_IN_QUOTED_STRING
An internal error generated by parser when the statement string ends within a quoted string = used by...
Definition error.h:99
@ NUODB_LOCK_TIMEOUT
Statement timed out.
Definition error.h:74
@ NUODB_INVALID_OPERATION
A generic error related to an invalid operation, Examples: "Maximum number of open result sets exceed...
Definition error.h:105
@ NUODB_JAVA_ERROR
An error has occurred, related to Java stored procedures.
Definition error.h:102
@ NUODB_UNIQUE_DUPLICATE
Server error regarding duplicate values in a unique index".
Definition error.h:69
@ NUODB_INVALID_FIELD
A server error setting a value to an invalid field.
Definition error.h:103
@ NUODB_LOST_BLOB
Unused.
Definition error.h:59
@ NUODB_NETWORK_ERROR
A network communication has occurred, either with the Broker or TE, Example: "no nodes are available ...
Definition error.h:35
@ NUODB_CONSTRAINT_ERROR
A SQL constraint violation has occurred.
Definition error.h:88
@ NUODB_OUT_OF_MEMORY_ERROR
Unused.
Definition error.h:72
@ NUODB_THROWN_EXCEPTION
This is used by the SQL THROW control statement.
Definition error.h:82
@ NUODB_BATCH_UPDATE_ERROR
Catchall for Batch update exceptions.
Definition error.h:101
@ NUODB_SUCCESS
success
Definition error.h:26
@ NUODB_READ_ONLY_ERROR
An error occurred where an attempt was made to write to a read only connection.
Definition error.h:79
@ NUODB_NO_SQL_JSON_ITEM
*< An error occurred during sequence value generation
Definition error.h:125
@ NUODB_INVALID_INDEX_NULL
An invalid null was inserted into index.
Definition error.h:104
@ NUODB_INVALID_STATISTICS
Index statistics for a specified query have become invalid.
Definition error.h:108
@ NUODB_UPDATE_ERROR
An attempt was made to update a database object that cannot be updated, Example: "Table returned by a...
Definition error.h:89
@ NUODB_IS_SHUTDOWN
An error occurred because the database is shutting down.
Definition error.h:98
@ NUODB_LOG_ERROR
Unused.
Definition error.h:62
@ NUODB_INVALID_UTF8
An error occurred where a string that is expected to be UTF-8 is not.
Definition error.h:86
@ NUODB_SECURITY_ERROR
A database security error has occurred, such as bad credentials, Examples: "no username specified",...
Definition error.h:49
@ NUODB_NO_SUCH_TABLE
An invalid table reference has occurred, Examples: "Table has been dropped"...
Definition error.h:66
@ NUODB_APPLICATION_ERROR
An application specific error has occurred, Example: "Cannot execute Pr...
Definition error.h:47
@ NUODB_INVALID_TRANSACTION_ISOLATION
Unused.
Definition error.h:83
@ NUODB_FINAL_ENUM_MEMBER_IS_UNUSED
*< No JSON item exists at path
Definition error.h:126
@ NUODB_INVALID_STATEMENT
An invalid reference to a SQL statement occurred, Example: "On connection n, Unable to kill statement...
Definition error.h:96
@ NUODB_UPDATE_CONFLICT
Server error has occurred, Example: "pending update rejected,...
Definition error.h:64
@ NUODB_LICENSE_ERROR
Unused.
Definition error.h:54
@ NUODB_SYNTAX_ERROR
SQL syntax error, Example: "wrong number of arguments for function".
Definition error.h:27
@ NUODB_NO_SCHEMA
An error occurred because no schema specified where schema is required.
Definition error.h:76
@ NUODB_NO_GENERATED_KEYS
Unused.
Definition error.h:81
@ NUODB_TRANSACTION_UNKNOWN_STATE
*< An error occurred while acquiring a transactional lock
Definition error.h:121
@ NUODB_NO_SUCH_INDEX
An invalid index reference has occurred, Examples: "Index has been droppe...
Definition error.h:113
@ NUODB_OCS_ERROR
Unused.
Definition error.h:34
@ NUODB_INTERNAL_ERROR
An internal error has occurred.
Definition error.h:55
@ NUODB_UNCOMMITTED_UPDATES
Unused.
Definition error.h:70
@ NUODB_XAER_PROTO
An error with the XA protocol has occurred, Examples: "TransactionId already prepared".
Definition error.h:117
@ NUODB_OPERATION_TIMEOUT
Query timeout period expired before a statement object executed.
Definition error.h:111
@ NUODB_INVALID_JSON_TEXT
*< The timezone is invalid
Definition error.h:123
@ NUODB_DDL_ERROR
A runtime error has occurred during execution of an SQL DDL statement, Example: "table already define...
Definition error.h:45
@ NUODB_PLATFORM_ERROR
Generic server error.
Definition error.h:75
@ NUODB_COMPILE_ERROR
An error has occurred during compilation of the SQL statement, Example: "inconsistent select list in ...
Definition error.h:30
@ NUODB_BUG_CHECK
An internal database error has occurred.
Definition error.h:29
@ NUODB_NO_DATA
indicates when is is no more data
Definition error.h:25
@ NUODB_CONNECTION_ERROR
Error related to making an SQL connection or to an already existing SQL connection,...
Definition error.h:42
@ NUODB_CONFIGURATION_ERROR
Server configuration error, Example: "Could not find a valid archive ...
Definition error.h:77
@ NUODB_DEBUG_ERROR
Unused.
Definition error.h:58
@ NUODB_INDEX_OVERFLOW
Unused.
Definition error.h:68
@ NUODB_OPERATION_KILLED
A SQL operation was killed, perhaps by the KILL STATEMENT command.
Definition error.h:94
@ NUODB_VERSION_ERROR
Unused.
Definition error.h:53
@ NUODB_INVALID_TIMEZONE_DISPLACEMENT_VALUE
*< An error occurred before the transaction successfully committed (for example: TE shutdown was init...
Definition error.h:122
@ NUODB_INVALID_GENERATOR
Badly defined generator defined in older version of nuodb.
Definition error.h:109
@ NUODB_DELETED_BLOB
Unused.
Definition error.h:61
@ NUODB_I18N_ERROR
An error having to do with Internationalization has occurred, Example: "Error getting default convert...
Definition error.h:92
@ NUODB_FEATURE_NOT_YET_IMPLEMENTED
Feature is not yet implemented.
Definition error.h:28
@ NUODB_NO_SUCH_SEQUENCE
An invalid sequence reference has occurred, Examples: "Sequence has been d...
Definition error.h:115
@ NUODB_TRANSACTIONAL_LOCK_ERROR
*< An unknown error code
Definition error.h:120
@ NUODB_INCONSISTENT_BLOB
Unused.
Definition error.h:60
@ NUODB_UNSUPPORTED_TRANSACTION_ISOLATION
An error occurred where the transaction level specified for connection is unsupported.
Definition error.h:84
@ NUODB_SEQUENCE_GENERATE_LIMIT_EXCEEDED
*< An invalid json document or document path
Definition error.h:124
@ NUODB_DATABASE_CORRUPTION
Unused.
Definition error.h:52
@ NUODB_DEADLOCK
Server deadlock error.
Definition error.h:71
@ NUODB_CONVERSION_ERROR
An conversion error has occurred during execution of an SQL statement, Example: "Numeric overflow con...
Definition error.h:37
NUODB_CAPI void NUODB_CAPICALL NuoDB_Error_clearLastErrorInfo()
Clear the last known error.
NUODB_CAPI void NUODB_CAPICALL NuoDB_Error_registerCallback(NuoDB_Status(*error_callback)(NuoDB_Error *error))
Register an error callback function.
enum NuoDB_Status_enum NuoDB_Status
Status codes used by the C Driver.
Definition error.h:130
NuoDB Database Connection.
Definition connection.h:97
NuoDB error information data structure
Definition error.h:148
NuoDB_Status(* getStatus)(NuoDB_Error *_this)
Returns the error status, which is a enumerated integer code for errors that can be returned by this ...
Definition error.h:160
The data structure for executing a SQL statement.
Definition statement.h:131