XTA: API Reference for C language

lixa_errors.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LIXA_RC_ABORTED_RECOVERY   -24
 
#define LIXA_RC_ACCEPT_ERROR   -135
 
#define LIXA_RC_ASKED_SHUTDOWN   +9
 
#define LIXA_RC_ASYNC_NOT_IMPLEMENTED   -21
 
#define LIXA_RC_BIND_ERROR   -133
 
#define LIXA_RC_BRANCHES_ON_MULTIPLE_THREADS   -28
 
#define LIXA_RC_BUFFER_OVERFLOW   -7
 
#define LIXA_RC_BYPASSED_OPERATION   +3
 
#define LIXA_RC_CLOSE_ERROR   -111
 
#define LIXA_RC_CONFIG_ERROR   -3
 
#define LIXA_RC_CONNECT_ERROR   -138
 
#define LIXA_RC_CONNECTION_CLOSED   +4
 
#define LIXA_RC_CONTAINER_FULL   -6
 
#define LIXA_RC_CORRUPTED_STATUS_FILE   -10
 
#define LIXA_RC_EMPTY_CONTAINER   +2
 
#define LIXA_RC_EMPTY_XML_MSG   -16
 
#define LIXA_RC_ERROR_FROM_SERVER_OFFSET   1000
 
#define LIXA_RC_FCLOSE_ERROR   -118
 
#define LIXA_RC_FGETS_ERROR   -119
 
#define LIXA_RC_FILE_NOT_EXISTS   -23
 
#define LIXA_RC_FIND_CLASS_ERROR   -510
 
#define LIXA_RC_FOPEN_ERROR   -117
 
#define LIXA_RC_FORK_ERROR   -103
 
#define LIXA_RC_FSTAT_ERROR   -123
 
#define LIXA_RC_G_ARRAY_NEW_ERROR   -300
 
#define LIXA_RC_G_BASE64_DECODE_ERROR   -301
 
#define LIXA_RC_G_BASE64_ENCODE_ERROR   -302
 
#define LIXA_RC_G_CHECKSUM_GET_STRING_ERROR   -303
 
#define LIXA_RC_G_CHECKSUM_NEW_ERROR   -304
 
#define LIXA_RC_G_COMPUTE_CHECKSUM_FOR_DATA   -305
 
#define LIXA_RC_G_HASH_TABLE_NEW_ERROR   -306
 
#define LIXA_RC_G_MODULE_CLOSE_ERROR   -307
 
#define LIXA_RC_G_MODULE_OPEN_ERROR   -308
 
#define LIXA_RC_G_MODULE_SYMBOL_ERROR   -309
 
#define LIXA_RC_G_PTR_ARRAY_NEW_ERROR   -310
 
#define LIXA_RC_G_RETURNED_NULL   -311
 
#define LIXA_RC_G_STRCONCAT_ERROR   -312
 
#define LIXA_RC_G_STRDUP_ERROR   -313
 
#define LIXA_RC_G_THREAD_CREATE_ERROR   -314
 
#define LIXA_RC_G_TRY_MALLOC_ERROR   -315
 
#define LIXA_RC_GET_DIRECT_BUFFER_ADDRESS_ERROR   -511
 
#define LIXA_RC_GET_ENV_ERROR   -512
 
#define LIXA_RC_GET_FIELD_ID_ERROR   -513
 
#define LIXA_RC_GET_JAVA_VM_ERROR   -514
 
#define LIXA_RC_GET_METHOD_ID_ERROR   -515
 
#define LIXA_RC_GET_OBJECT_CLASS_ERROR   -516
 
#define LIXA_RC_GET_OBJECT_FIELD_ERROR   -517
 
#define LIXA_RC_GET_STRING_UTF_CHARS_ERROR   -518
 
#define LIXA_RC_GET_VERSION_ERROR   -519
 
#define LIXA_RC_GETADDRINFO_ERROR   -137
 
#define LIXA_RC_GETPEERNAME_ERROR   -142
 
#define LIXA_RC_GETSOCKNAME_ERROR   -141
 
#define LIXA_RC_GETSOCKOPT_ERROR   -132
 
#define LIXA_RC_GETTIMEOFDAY_ERROR   -129
 
#define LIXA_RC_INTERNAL_ERROR   -1
 
#define LIXA_RC_INVALID_LENGTH_XML_MSG   -18
 
#define LIXA_RC_INVALID_OPTION   -11
 
#define LIXA_RC_INVALID_PREFIX_SIZE   -15
 
#define LIXA_RC_INVALID_STATE_TRANSITION   -31
 
#define LIXA_RC_INVALID_STATUS   -13
 
#define LIXA_RC_KILL_ERROR   -104
 
#define LIXA_RC_LAST_STEP_EXCEEDED   -30
 
#define LIXA_RC_LISTEN_ERROR   -134
 
#define LIXA_RC_LIXAC_CONF_CHANGED   +7
 
#define LIXA_RC_LOCALTIME_ERROR   -128
 
#define LIXA_RC_MAINTENANCE_MODE   +10
 
#define LIXA_RC_MALFORMED_XID   -26
 
#define LIXA_RC_MALFORMED_XML_MSG   -17
 
#define LIXA_RC_MALLOC_ERROR   -100
 
#define LIXA_RC_MESSAGE_LEVEL_MISMATCH   -27
 
#define LIXA_RC_MMAP_ERROR   -124
 
#define LIXA_RC_MSG_TIMEOUT_SOCKET_CLOSED   -32
 
#define LIXA_RC_MSYNC_ERROR   -126
 
#define LIXA_RC_MULTIBRANCH_PREPARE_FAILED   -29
 
#define LIXA_RC_MUNMAP_ERROR   -125
 
#define LIXA_RC_NETWORK_EVENT_ERROR   -4
 
#define LIXA_RC_NEW_BYTE_ARRAY_ERROR   -520
 
#define LIXA_RC_NEW_DIRECT_BYTE_BUFFER_ERROR   -521
 
#define LIXA_RC_NEW_GLOBAL_REF_ERROR   -522
 
#define LIXA_RC_NEW_OBJECT_ERROR   -523
 
#define LIXA_RC_NEW_STRING_UTF_ERROR   -524
 
#define LIXA_RC_NO_SUPERIOR_BRANCH   +11
 
#define LIXA_RC_NON_BRANCHABLE_TX   -505
 
#define LIXA_RC_NON_DISPOSABLE_TX   -507
 
#define LIXA_RC_NON_REUSABLE_TX   -506
 
#define LIXA_RC_NOT_CHAINABLE_BRANCH   +12
 
#define LIXA_RC_NULL_OBJECT   -5
 
#define LIXA_RC_OBJ_CORRUPTED   -9
 
#define LIXA_RC_OBJ_NOT_FOUND   +1
 
#define LIXA_RC_OBJ_NOT_INITIALIZED   -8
 
#define LIXA_RC_OK   0
 
#define LIXA_RC_OPEN_ERROR   -110
 
#define LIXA_RC_OPERATION_POSTPONED   +13
 
#define LIXA_RC_OTHER_BRANCH_ERROR   +15
 
#define LIXA_RC_OUT_OF_RANGE   -2
 
#define LIXA_RC_PATHCONF_ERROR   -115
 
#define LIXA_RC_PIPE_ERROR   -109
 
#define LIXA_RC_POLL_ERROR   -108
 
#define LIXA_RC_PROPERTY_INVALID_VALUE   -19
 
#define LIXA_RC_PROTOCOL_ERROR   -12
 
#define LIXA_RC_PTHREAD_CREATE_ERROR   -150
 
#define LIXA_RC_PTHREAD_MUTEX_LOCK_ERROR   -151
 
#define LIXA_RC_PTHREAD_MUTEX_UNLOCK_ERROR   -152
 
#define LIXA_RC_PTHREAD_RWLOCK_RDLOCK_ERROR   -154
 
#define LIXA_RC_PTHREAD_RWLOCK_UNLOCK_ERROR   -155
 
#define LIXA_RC_PTHREAD_RWLOCK_WRLOCK_ERROR   -153
 
#define LIXA_RC_READ_ERROR   -114
 
#define LIXA_RC_REALLOC_ERROR   -101
 
#define LIXA_RC_REALPATH_ERROR   -116
 
#define LIXA_RC_RECOVERY_INFO_MISMATCH   -25
 
#define LIXA_RC_RECOVERY_PENDING_TX   +6
 
#define LIXA_RC_RECV_ERROR   -140
 
#define LIXA_RC_RESOURCE_ALREADY_REGISTERED   -500
 
#define LIXA_RC_RM_ERROR   -96
 
#define LIXA_RC_SEND_ERROR   -139
 
#define LIXA_RC_SET_BYTE_ARRAY_REGION_ERROR   -525
 
#define LIXA_RC_SET_OBJECT_FIELD_ERROR   -526
 
#define LIXA_RC_SETSOCKOPT_ERROR   -131
 
#define LIXA_RC_SHUTDOWN_ERROR   -136
 
#define LIXA_RC_SOCKET_ERROR   -130
 
#define LIXA_RC_STAT_ERROR   -122
 
#define LIXA_RC_STRDUP_ERROR   -102
 
#define LIXA_RC_THREAD_SWITCH   +8
 
#define LIXA_RC_TOO_MANY_RSRMGRS   -14
 
#define LIXA_RC_TRUNCATE_ERROR   -112
 
#define LIXA_RC_TRUNCATION_OCCURRED   +5
 
#define LIXA_RC_TX_ERROR   -98
 
#define LIXA_RC_TX_FAIL   -97
 
#define LIXA_RC_TX_HAZARD   -504
 
#define LIXA_RC_TX_MIXED   -503
 
#define LIXA_RC_TX_ROLLBACK   -502
 
#define LIXA_RC_UNSUPPORTED_OPTION   -22
 
#define LIXA_RC_UUID_PARSE_ERROR   -127
 
#define LIXA_RC_WAITPID_ERROR   -120
 
#define LIXA_RC_WOULD_BLOCK   +14
 
#define LIXA_RC_WRITE_ERROR   -113
 
#define LIXA_RC_XA_ERROR   -99
 
#define LIXA_RC_XML_CHAR_STRDUP_ERROR   -204
 
#define LIXA_RC_XML_DOC_GET_ROOT_ELEMENT_ERROR   -203
 
#define LIXA_RC_XML_READ_DOC_ERROR   -201
 
#define LIXA_RC_XML_READ_FILE_ERROR   -200
 
#define LIXA_RC_XML_READ_MEMORY_ERROR   -202
 
#define LIXA_RC_XML_STRDUP_ERROR   -205
 
#define LIXA_RC_XML_UNRECOGNIZED_TAG   -20
 

Functions

const char * lixa_strerror (int ret_cod)
 

Macro Definition Documentation

#define LIXA_RC_ABORTED_RECOVERY   -24

A transaction can not be recovered

Definition at line 216 of file lixa_errors.h.

#define LIXA_RC_ACCEPT_ERROR   -135

"accept" function error

Definition at line 422 of file lixa_errors.h.

#define LIXA_RC_ASKED_SHUTDOWN   +9

Shutdown must be performed

Definition at line 80 of file lixa_errors.h.

#define LIXA_RC_ASYNC_NOT_IMPLEMENTED   -21

An operation is referring to asynchronous mode that is not yet implemented

Definition at line 204 of file lixa_errors.h.

#define LIXA_RC_BIND_ERROR   -133

"bind" function error

Definition at line 414 of file lixa_errors.h.

#define LIXA_RC_BRANCHES_ON_MULTIPLE_THREADS   -28

Branches of the same global transaction are managed by multiple threads

Definition at line 232 of file lixa_errors.h.

#define LIXA_RC_BUFFER_OVERFLOW   -7

The process has been stopped to avoid a buffer overflow

Definition at line 147 of file lixa_errors.h.

#define LIXA_RC_BYPASSED_OPERATION   +3

An operation that can not be performed and can safely bypassed has been requested: the program can go on as no operation was requested

Definition at line 55 of file lixa_errors.h.

#define LIXA_RC_CLOSE_ERROR   -111

"close" function error

Definition at line 305 of file lixa_errors.h.

#define LIXA_RC_CONFIG_ERROR   -3

Configuration file is broken

Definition at line 130 of file lixa_errors.h.

#define LIXA_RC_CONNECT_ERROR   -138

"connect" function error

Definition at line 434 of file lixa_errors.h.

#define LIXA_RC_CONNECTION_CLOSED   +4

Peer has closed TCP/IP connection

Definition at line 59 of file lixa_errors.h.

#define LIXA_RC_CONTAINER_FULL   -6

The container is full and can NOT store more elements

Definition at line 143 of file lixa_errors.h.

#define LIXA_RC_CORRUPTED_STATUS_FILE   -10

Status files are corrupted and the server can not start-up

Definition at line 159 of file lixa_errors.h.

#define LIXA_RC_EMPTY_CONTAINER   +2

The container is empty

Definition at line 50 of file lixa_errors.h.

#define LIXA_RC_EMPTY_XML_MSG   -16

The XML message is empty and can not be processed

Definition at line 184 of file lixa_errors.h.

#define LIXA_RC_ERROR_FROM_SERVER_OFFSET   1000

This is not a proper error, but an offset: when the client receive an error from the server, it adds this offset to distinguish the reason as an error generated in the server side

Definition at line 39 of file lixa_errors.h.

#define LIXA_RC_FCLOSE_ERROR   -118

"fclose" function error

Definition at line 333 of file lixa_errors.h.

#define LIXA_RC_FGETS_ERROR   -119

"fgets" function/macro error

Definition at line 337 of file lixa_errors.h.

#define LIXA_RC_FILE_NOT_EXISTS   -23

A specified file can not be opened because it does not exist

Definition at line 212 of file lixa_errors.h.

#define LIXA_RC_FIND_CLASS_ERROR   -510

JNI "FindClass" function error

Definition at line 613 of file lixa_errors.h.

#define LIXA_RC_FOPEN_ERROR   -117

"fopen" function error

Definition at line 329 of file lixa_errors.h.

#define LIXA_RC_FORK_ERROR   -103

"fork" function error

Definition at line 285 of file lixa_errors.h.

#define LIXA_RC_FSTAT_ERROR   -123

"fstat" function error

Definition at line 361 of file lixa_errors.h.

#define LIXA_RC_G_ARRAY_NEW_ERROR   -300

"g_array_new" function error

Definition at line 502 of file lixa_errors.h.

#define LIXA_RC_G_BASE64_DECODE_ERROR   -301

"g_base64_decode" function error

Definition at line 506 of file lixa_errors.h.

#define LIXA_RC_G_BASE64_ENCODE_ERROR   -302

"g_base64_encode" function error

Definition at line 510 of file lixa_errors.h.

#define LIXA_RC_G_CHECKSUM_GET_STRING_ERROR   -303

"g_checksum_get_string" function error

Definition at line 514 of file lixa_errors.h.

Referenced by xta_transaction_redigest().

#define LIXA_RC_G_CHECKSUM_NEW_ERROR   -304

"g_checksum_new" function error

Definition at line 518 of file lixa_errors.h.

Referenced by xta_transaction_redigest().

#define LIXA_RC_G_COMPUTE_CHECKSUM_FOR_DATA   -305

"g_compute_checksum_for_data" function error

Definition at line 522 of file lixa_errors.h.

#define LIXA_RC_G_HASH_TABLE_NEW_ERROR   -306

"g_hash_table_new" function error

Definition at line 526 of file lixa_errors.h.

Referenced by xta_transaction_manager_create_transaction().

#define LIXA_RC_G_MODULE_CLOSE_ERROR   -307

"g_module_close" function error

Definition at line 530 of file lixa_errors.h.

#define LIXA_RC_G_MODULE_OPEN_ERROR   -308

"g_module_open" function error

Definition at line 534 of file lixa_errors.h.

#define LIXA_RC_G_MODULE_SYMBOL_ERROR   -309

"g_module_symbol" function error

Definition at line 538 of file lixa_errors.h.

#define LIXA_RC_G_PTR_ARRAY_NEW_ERROR   -310

"g_ptr_array_new" function error

Definition at line 542 of file lixa_errors.h.

#define LIXA_RC_G_RETURNED_NULL   -311

A glib function returned a NULL pointer; the function is not documented as returnig NULL. This is basically an internal error

Definition at line 547 of file lixa_errors.h.

#define LIXA_RC_G_STRCONCAT_ERROR   -312

"g_strconcat" function error

Definition at line 551 of file lixa_errors.h.

#define LIXA_RC_G_STRDUP_ERROR   -313

"g_strdup" function error

Definition at line 555 of file lixa_errors.h.

#define LIXA_RC_G_THREAD_CREATE_ERROR   -314

"g_thread_create" function error

Definition at line 559 of file lixa_errors.h.

#define LIXA_RC_GET_DIRECT_BUFFER_ADDRESS_ERROR   -511

JNI "GetDirectBufferAddress" function error

Definition at line 617 of file lixa_errors.h.

#define LIXA_RC_GET_ENV_ERROR   -512

JNI "GetEnv" function error

Definition at line 621 of file lixa_errors.h.

#define LIXA_RC_GET_FIELD_ID_ERROR   -513

JNI "GetFieldID" function error

Definition at line 625 of file lixa_errors.h.

#define LIXA_RC_GET_JAVA_VM_ERROR   -514

JNI "GetJavaVM" function error

Definition at line 629 of file lixa_errors.h.

#define LIXA_RC_GET_METHOD_ID_ERROR   -515

JNI "GetMethodID" function error

Definition at line 633 of file lixa_errors.h.

#define LIXA_RC_GET_OBJECT_CLASS_ERROR   -516

JNI "GetObjectClass" function error

Definition at line 637 of file lixa_errors.h.

#define LIXA_RC_GET_OBJECT_FIELD_ERROR   -517

JNI "GetObjectField" function error

Definition at line 641 of file lixa_errors.h.

#define LIXA_RC_GET_STRING_UTF_CHARS_ERROR   -518

JNI "GetStringUTFChars" function error

Definition at line 645 of file lixa_errors.h.

#define LIXA_RC_GET_VERSION_ERROR   -519

JNI "GetVersion" function error

Definition at line 649 of file lixa_errors.h.

#define LIXA_RC_GETADDRINFO_ERROR   -137

"getaddrinfo" function error

Definition at line 430 of file lixa_errors.h.

#define LIXA_RC_GETPEERNAME_ERROR   -142

"getsockname" function error

Definition at line 450 of file lixa_errors.h.

#define LIXA_RC_GETSOCKNAME_ERROR   -141

"getsockname" function error

Definition at line 446 of file lixa_errors.h.

#define LIXA_RC_GETSOCKOPT_ERROR   -132

"getsockopt" function error

Definition at line 410 of file lixa_errors.h.

#define LIXA_RC_GETTIMEOFDAY_ERROR   -129

"gettimeofday" function error

Definition at line 394 of file lixa_errors.h.

#define LIXA_RC_INTERNAL_ERROR   -1

Internal error: unrecoverable status!

Definition at line 122 of file lixa_errors.h.

Referenced by xta_acquired_xa_resource_clean(), xta_acquired_xa_resource_init(), xta_mysql_xa_resource_clean(), xta_mysql_xa_resource_delete(), xta_mysql_xa_resource_init(), xta_mysql_xa_resource_new(), xta_native_xa_resource_clean(), xta_native_xa_resource_delete(), xta_native_xa_resource_init(), xta_native_xa_resource_new(), xta_native_xa_resource_new_by_rmid(), xta_postgresql_xa_resource_clean(), xta_postgresql_xa_resource_delete(), xta_postgresql_xa_resource_init(), xta_postgresql_xa_resource_new(), xta_transaction_branch(), xta_transaction_close_internal(), xta_transaction_commit(), xta_transaction_delete(), xta_transaction_enlist_resource(), xta_transaction_get_config(), xta_transaction_get_multiple_branches(), xta_transaction_get_xid(), xta_transaction_manager_create_transaction(), xta_transaction_manager_delete(), xta_transaction_manager_new(), xta_transaction_new(), xta_transaction_open_internal(), xta_transaction_recover(), xta_transaction_redigest(), xta_transaction_resume(), xta_transaction_rollback(), xta_transaction_safe_delete(), xta_transaction_start(), xta_transaction_suspend(), xta_xa_resource_clean(), xta_xa_resource_commit(), xta_xa_resource_end(), xta_xa_resource_enlisted(), xta_xa_resource_get_config(), xta_xa_resource_init(), xta_xa_resource_prepare(), xta_xa_resource_start(), xta_xid_delete(), xta_xid_dup(), xta_xid_get_xa_xid(), xta_xid_new(), xta_xid_new_from_string(), xta_xid_new_from_XID(), xta_xid_reset(), and xta_xid_to_string().

#define LIXA_RC_INVALID_LENGTH_XML_MSG   -18

The length of the XML message differs from prefix

Definition at line 192 of file lixa_errors.h.

#define LIXA_RC_INVALID_OPTION   -11

A specified option is not valid for method and/or object status

Definition at line 163 of file lixa_errors.h.

Referenced by xta_acquired_xa_resource_init(), xta_native_xa_resource_init(), xta_transaction_resume(), and xta_transaction_suspend().

#define LIXA_RC_INVALID_PREFIX_SIZE   -15

The number of chars of the prefix of the XML message

Definition at line 180 of file lixa_errors.h.

#define LIXA_RC_INVALID_STATE_TRANSITION   -31

An invalid state transtion has been requested to a Finite State Machine

Definition at line 244 of file lixa_errors.h.

#define LIXA_RC_INVALID_STATUS   -13

The status (value of any properties) of an object is invalid due to a bug located elsewhere (a complex "internal error" condition)

Definition at line 172 of file lixa_errors.h.

Referenced by xta_transaction_branch(), xta_transaction_close_internal(), xta_transaction_commit(), xta_transaction_enlist_resource(), xta_transaction_open_internal(), xta_transaction_resume(), xta_transaction_rollback(), xta_transaction_safe_delete(), xta_transaction_start(), and xta_transaction_suspend().

#define LIXA_RC_KILL_ERROR   -104

"kill" function error

Definition at line 289 of file lixa_errors.h.

#define LIXA_RC_LAST_STEP_EXCEEDED   -30

Last step for the verb has been already reached

Definition at line 240 of file lixa_errors.h.

#define LIXA_RC_LISTEN_ERROR   -134

"bind" function error

Definition at line 418 of file lixa_errors.h.

#define LIXA_RC_LIXAC_CONF_CHANGED   +7

The digest of the lixac config file changed -> the client config file changed

Definition at line 72 of file lixa_errors.h.

#define LIXA_RC_LOCALTIME_ERROR   -128

"localtime/localtime_r" function error

Definition at line 390 of file lixa_errors.h.

#define LIXA_RC_MAINTENANCE_MODE   +10

Only maintenance mode is allowed

Definition at line 84 of file lixa_errors.h.

#define LIXA_RC_MALFORMED_XID   -26

A malformed XID has been discovered

Definition at line 224 of file lixa_errors.h.

Referenced by xta_transaction_branch(), and xta_xid_new_from_string().

#define LIXA_RC_MALFORMED_XML_MSG   -17

The XML message is malformed and can not be processed

Definition at line 188 of file lixa_errors.h.

#define LIXA_RC_MALLOC_ERROR   -100

"malloc"/"g_malloc" function error

Definition at line 273 of file lixa_errors.h.

Referenced by xta_xid_to_string().

#define LIXA_RC_MESSAGE_LEVEL_MISMATCH   -27

A message with a wrong level has been detected

Definition at line 228 of file lixa_errors.h.

#define LIXA_RC_MMAP_ERROR   -124

"mmap" function error

Definition at line 365 of file lixa_errors.h.

#define LIXA_RC_MSG_TIMEOUT_SOCKET_CLOSED   -32

A message has not been received before timeout expiration and the TCP socket has been closed

Definition at line 249 of file lixa_errors.h.

#define LIXA_RC_MSYNC_ERROR   -126

"msync" function error

Definition at line 373 of file lixa_errors.h.

#define LIXA_RC_MULTIBRANCH_PREPARE_FAILED   -29

Multiple branches prepare has been failed due to one or more branches

Definition at line 236 of file lixa_errors.h.

#define LIXA_RC_MUNMAP_ERROR   -125

"munmap" function error

Definition at line 369 of file lixa_errors.h.

#define LIXA_RC_NETWORK_EVENT_ERROR   -4

Unespected network event

Definition at line 134 of file lixa_errors.h.

#define LIXA_RC_NEW_BYTE_ARRAY_ERROR   -520

JNI "NewByteArray" function error

Definition at line 653 of file lixa_errors.h.

#define LIXA_RC_NEW_DIRECT_BYTE_BUFFER_ERROR   -521

JNI "NewDirectByteBuffer" function error

Definition at line 657 of file lixa_errors.h.

#define LIXA_RC_NEW_GLOBAL_REF_ERROR   -522

JNI "NewGlobalRef" function error

Definition at line 661 of file lixa_errors.h.

#define LIXA_RC_NEW_OBJECT_ERROR   -523

JNI "NewObject" function error

Definition at line 665 of file lixa_errors.h.

#define LIXA_RC_NEW_STRING_UTF_ERROR   -524

JNI "NewObject" function error

Definition at line 669 of file lixa_errors.h.

#define LIXA_RC_NO_SUPERIOR_BRANCH   +11

The Application Program wants to branch an existing superior branch, but it does not exist. The transaction can go on as a standard one.

Definition at line 89 of file lixa_errors.h.

Referenced by xta_transaction_branch().

#define LIXA_RC_NON_BRANCHABLE_TX   -505

The XA transaction can not be branched because it has been create as non branchable

Definition at line 596 of file lixa_errors.h.

Referenced by xta_transaction_branch().

#define LIXA_RC_NON_DISPOSABLE_TX   -507

The XA transaction object can not be safely disposed because the transaction has not yet ended

Definition at line 605 of file lixa_errors.h.

Referenced by xta_transaction_manager_create_transaction().

#define LIXA_RC_NON_REUSABLE_TX   -506

The XA transaction object can not be reused: a new one must be created

Definition at line 600 of file lixa_errors.h.

Referenced by xta_transaction_start().

#define LIXA_RC_NOT_CHAINABLE_BRANCH   +12

The Application Program wants to branch an existing superior branch, but the superior branch has already started to prepare the global transacation

Definition at line 94 of file lixa_errors.h.

#define LIXA_RC_OBJ_CORRUPTED   -9

A corrupted object has been passed to a function

Definition at line 155 of file lixa_errors.h.

Referenced by xta_acquired_xa_resource_init().

#define LIXA_RC_OBJ_NOT_FOUND   +1

Object not found

Definition at line 46 of file lixa_errors.h.

#define LIXA_RC_OBJ_NOT_INITIALIZED   -8

A NOT initialized object has been passed to a method/function

Definition at line 151 of file lixa_errors.h.

#define LIXA_RC_OK   0

Successfully completion

Definition at line 115 of file lixa_errors.h.

Referenced by xta_acquired_xa_resource_clean(), xta_acquired_xa_resource_init(), xta_mysql_xa_resource_clean(), xta_mysql_xa_resource_delete(), xta_mysql_xa_resource_init(), xta_mysql_xa_resource_new(), xta_native_xa_resource_clean(), xta_native_xa_resource_delete(), xta_native_xa_resource_init(), xta_native_xa_resource_new(), xta_native_xa_resource_new_by_rmid(), xta_postgresql_xa_resource_clean(), xta_postgresql_xa_resource_delete(), xta_postgresql_xa_resource_init(), xta_postgresql_xa_resource_new(), xta_transaction_branch(), xta_transaction_close_internal(), xta_transaction_commit(), xta_transaction_delete(), xta_transaction_enlist_resource(), xta_transaction_get_config(), xta_transaction_get_multiple_branches(), xta_transaction_get_xid(), xta_transaction_manager_create_transaction(), xta_transaction_manager_delete(), xta_transaction_manager_new(), xta_transaction_new(), xta_transaction_open_internal(), xta_transaction_recover(), xta_transaction_redigest(), xta_transaction_resume(), xta_transaction_rollback(), xta_transaction_safe_delete(), xta_transaction_start(), xta_transaction_suspend(), xta_xa_resource_clean(), xta_xa_resource_commit(), xta_xa_resource_end(), xta_xa_resource_enlisted(), xta_xa_resource_get_config(), xta_xa_resource_init(), xta_xa_resource_prepare(), xta_xa_resource_start(), xta_xid_delete(), xta_xid_dup(), xta_xid_get_xa_xid(), xta_xid_new(), xta_xid_new_from_string(), xta_xid_new_from_XID(), xta_xid_reset(), and xta_xid_to_string().

#define LIXA_RC_OPEN_ERROR   -110

"open" function error

Definition at line 301 of file lixa_errors.h.

#define LIXA_RC_OPERATION_POSTPONED   +13

An operation must be postponed because not all conditions are met

Definition at line 98 of file lixa_errors.h.

#define LIXA_RC_OTHER_BRANCH_ERROR   +15

The operation can not be completed due to an error happened in a different branch that's part of the same global transaction

Definition at line 108 of file lixa_errors.h.

Referenced by xta_transaction_commit().

#define LIXA_RC_OUT_OF_RANGE   -2

A parameter passed to a function is OUT OF RANGE

Definition at line 126 of file lixa_errors.h.

Referenced by xta_native_xa_resource_init().

#define LIXA_RC_PATHCONF_ERROR   -115

"pathconf" function error

Definition at line 321 of file lixa_errors.h.

#define LIXA_RC_PIPE_ERROR   -109

"pipe" function error

Definition at line 297 of file lixa_errors.h.

#define LIXA_RC_POLL_ERROR   -108

"poll" function error

Definition at line 293 of file lixa_errors.h.

#define LIXA_RC_PROPERTY_INVALID_VALUE   -19

The XML message is malformed and can not be processed

Definition at line 196 of file lixa_errors.h.

#define LIXA_RC_PROTOCOL_ERROR   -12

A routine has been invoked in an improper context

Definition at line 167 of file lixa_errors.h.

Referenced by xta_transaction_close_internal(), xta_transaction_resume(), and xta_transaction_suspend().

#define LIXA_RC_PTHREAD_CREATE_ERROR   -150

"pthread_create" function error

Definition at line 454 of file lixa_errors.h.

#define LIXA_RC_PTHREAD_MUTEX_LOCK_ERROR   -151

"pthread_mutex_lock" function error

Definition at line 458 of file lixa_errors.h.

#define LIXA_RC_PTHREAD_MUTEX_UNLOCK_ERROR   -152

"pthread_mutex_unlock" function error

Definition at line 462 of file lixa_errors.h.

#define LIXA_RC_PTHREAD_RWLOCK_RDLOCK_ERROR   -154

"pthread_rwlock_rlock" function error

Definition at line 470 of file lixa_errors.h.

#define LIXA_RC_PTHREAD_RWLOCK_UNLOCK_ERROR   -155

"pthread_rwlock_unlock" function error

Definition at line 474 of file lixa_errors.h.

#define LIXA_RC_PTHREAD_RWLOCK_WRLOCK_ERROR   -153

"pthread_rwlock_wrlock" function error

Definition at line 466 of file lixa_errors.h.

#define LIXA_RC_READ_ERROR   -114

"fread" function error

Definition at line 317 of file lixa_errors.h.

#define LIXA_RC_REALLOC_ERROR   -101

"realloc" function error

Definition at line 277 of file lixa_errors.h.

#define LIXA_RC_REALPATH_ERROR   -116

"realpath" function error

Definition at line 325 of file lixa_errors.h.

#define LIXA_RC_RECOVERY_INFO_MISMATCH   -25

Client/server recovery configuration do not match

Definition at line 220 of file lixa_errors.h.

#define LIXA_RC_RECOVERY_PENDING_TX   +6

This thread of control should recover some recovery pending transactions

Definition at line 67 of file lixa_errors.h.

#define LIXA_RC_RECV_ERROR   -140

"recv" function error

Definition at line 442 of file lixa_errors.h.

#define LIXA_RC_RESOURCE_ALREADY_REGISTERED   -500

The XA Resource has been already registered to a different Transaction Manager

Definition at line 576 of file lixa_errors.h.

Referenced by xta_xa_resource_enlisted().

#define LIXA_RC_RM_ERROR   -96

Generic error for a Resource Manager operation

Definition at line 256 of file lixa_errors.h.

#define LIXA_RC_SEND_ERROR   -139

"recv" function error

Definition at line 438 of file lixa_errors.h.

#define LIXA_RC_SET_BYTE_ARRAY_REGION_ERROR   -525

JNI "SetByteArrayRegion" function error

Definition at line 673 of file lixa_errors.h.

#define LIXA_RC_SET_OBJECT_FIELD_ERROR   -526

JNI "SetObjectField" function error

Definition at line 677 of file lixa_errors.h.

#define LIXA_RC_SETSOCKOPT_ERROR   -131

"setsockopt" function error

Definition at line 406 of file lixa_errors.h.

#define LIXA_RC_SHUTDOWN_ERROR   -136

"shutdown" function error

Definition at line 426 of file lixa_errors.h.

#define LIXA_RC_SOCKET_ERROR   -130

"unlink" function error define LIXA_RC_UNLINK_ERROR -129 "socket" function error

Definition at line 402 of file lixa_errors.h.

#define LIXA_RC_STAT_ERROR   -122

"ftruncate" function error define LIXA_RC_FTRUNCATE_ERROR -121 "fileno" function error define LIXA_RC_FILENO_ERROR -122 "rename" function error define LIXA_RC_RENAME_ERROR -123 "stat" function error

Definition at line 357 of file lixa_errors.h.

#define LIXA_RC_STRDUP_ERROR   -102

"strdup" function error

Definition at line 281 of file lixa_errors.h.

Referenced by xta_xid_new().

#define LIXA_RC_THREAD_SWITCH   +8

The thread is serving the client must be switched to a different one

Definition at line 76 of file lixa_errors.h.

#define LIXA_RC_TOO_MANY_RSRMGRS   -14

Too many resource managers

Definition at line 176 of file lixa_errors.h.

#define LIXA_RC_TRUNCATE_ERROR   -112

"truncate" function error

Definition at line 309 of file lixa_errors.h.

#define LIXA_RC_TRUNCATION_OCCURRED   +5

A truncation occurred because the destination is smaller then the source

Definition at line 63 of file lixa_errors.h.

#define LIXA_RC_TX_ERROR   -98

Generic error for an TX error (an TX return code not equal TX_OK)

Definition at line 264 of file lixa_errors.h.

#define LIXA_RC_TX_FAIL   -97

The client status is unknown due to a previous TX_FAIL

Definition at line 260 of file lixa_errors.h.

#define LIXA_RC_TX_HAZARD   -504

The XA transaction may have been partially committed and partially rolled back (like TX_HAZARD in TX transaction demarcation specification)

Definition at line 591 of file lixa_errors.h.

Referenced by xta_transaction_commit(), and xta_transaction_rollback().

#define LIXA_RC_TX_MIXED   -503

The XA transaction was partially committed and partially rolled back (like TX_MIXED in TX transaction demarcation specification)

Definition at line 586 of file lixa_errors.h.

Referenced by xta_transaction_commit(), and xta_transaction_rollback().

#define LIXA_RC_TX_ROLLBACK   -502

The XA transaction was rolled back (like TX_ROLLBACK in TX transaction demarcation specification)

Definition at line 581 of file lixa_errors.h.

Referenced by xta_transaction_commit().

#define LIXA_RC_UNSUPPORTED_OPTION   -22

The specified option might be valid, but it's not (yet) supported by LIXA

Definition at line 208 of file lixa_errors.h.

#define LIXA_RC_UUID_PARSE_ERROR   -127

"vsnprintf" function error define LIXA_RC_VSNPRINTF_ERROR -125 "times" function error define LIXA_RC_TIMES_ERROR -126 "uuid_parse" function error

Definition at line 386 of file lixa_errors.h.

#define LIXA_RC_WAITPID_ERROR   -120

"waitpit" function error

Definition at line 341 of file lixa_errors.h.

#define LIXA_RC_WOULD_BLOCK   +14

The operation would block the client, but "NON BLOCK" option has been specified

Definition at line 103 of file lixa_errors.h.

Referenced by xta_transaction_commit().

#define LIXA_RC_WRITE_ERROR   -113

"write" function error

Definition at line 313 of file lixa_errors.h.

#define LIXA_RC_XA_ERROR   -99

Generic error for an XA error (an XA return code not equal XA_OK)

Definition at line 268 of file lixa_errors.h.

#define LIXA_RC_XML_CHAR_STRDUP_ERROR   -204

"xmlCharStrdup" function error

Definition at line 494 of file lixa_errors.h.

#define LIXA_RC_XML_DOC_GET_ROOT_ELEMENT_ERROR   -203

"xmlDocGetRootElement" function error

Definition at line 490 of file lixa_errors.h.

#define LIXA_RC_XML_READ_DOC_ERROR   -201

"xmlReadDoc" function error

Definition at line 482 of file lixa_errors.h.

#define LIXA_RC_XML_READ_FILE_ERROR   -200

"xmlReadFile" function error

Definition at line 478 of file lixa_errors.h.

#define LIXA_RC_XML_READ_MEMORY_ERROR   -202

"xmlReadMemory" function error

Definition at line 486 of file lixa_errors.h.

#define LIXA_RC_XML_STRDUP_ERROR   -205

"xmlStrdup" function error

Definition at line 498 of file lixa_errors.h.

Referenced by xta_acquired_xa_resource_init(), and xta_native_xa_resource_init().

#define LIXA_RC_XML_UNRECOGNIZED_TAG   -20

The XML contains a tag is not known or is in the wrong place

Definition at line 200 of file lixa_errors.h.

Function Documentation

const char* lixa_strerror ( int  ret_cod)

PUBLIC METHOD
Retrieve the description associated to a return/reason code

Parameters
[in]ret_codreturn/reason code of the desired description
Returns
a const string containing a description of reason code

Referenced by xta_transaction_new().


Copyright © 2009-2019, Christian Ferrari tiian@users.sourceforge.net http://www.tiian.org/