#include "libstoragemgmt_common.h"
Go to the source code of this file.
Definition in file libstoragemgmt_error.h.
typedef struct _lsm_error lsm_error |
Definition at line 137 of file libstoragemgmt_error.h.
typedef lsm_error* lsm_error_ptr |
Definition at line 138 of file libstoragemgmt_error.h.
enum lsm_error_number |
< Possible enumerated return codes from library
LSM_ERR_OK | |
LSM_ERR_LIB_BUG |
^ OK |
LSM_ERR_PLUGIN_BUG |
^ Library BUG |
LSM_ERR_JOB_STARTED |
^ Plugin BUG |
LSM_ERR_TIMEOUT |
^ Operation has started |
LSM_ERR_DAEMON_NOT_RUNNING |
^ Plug-in is un-responsive |
LSM_ERR_NAME_CONFLICT |
^ Daemon is not running |
LSM_ERR_EXISTS_INITIATOR |
^ Name exists |
LSM_ERR_INVALID_ARGUMENT |
^ Initiator exists in another access group |
LSM_ERR_NO_STATE_CHANGE |
^ Precondition checks failed |
LSM_ERR_NETWORK_CONNREFUSED |
^ Operation completed with no change in array state |
LSM_ERR_NETWORK_HOSTDOWN |
^ Host on network, but not allowing connection |
LSM_ERR_NETWORK_ERROR |
^ Host unreachable on network |
LSM_ERR_NO_MEMORY |
^ Generic network error |
LSM_ERR_NO_SUPPORT |
^ Memory allocation failure |
LSM_ERR_IS_MASKED |
^ Feature not supported |
LSM_ERR_NOT_FOUND_ACCESS_GROUP |
^ Volume masked to Access Group |
LSM_ERR_NOT_FOUND_FS |
^ Specified access group not found |
LSM_ERR_NOT_FOUND_JOB |
^ Specified FS not found |
LSM_ERR_NOT_FOUND_POOL |
^ Specified JOB not found |
LSM_ERR_NOT_FOUND_FS_SS |
^ Specified POOL not found |
LSM_ERR_NOT_FOUND_VOLUME |
^ Specified snap shot not found |
LSM_ERR_NOT_FOUND_NFS_EXPORT |
^ Specified volume not found |
LSM_ERR_NOT_FOUND_SYSTEM |
^ NFS export not found |
LSM_ERR_NOT_FOUND_DISK |
^ System not found |
LSM_ERR_NOT_LICENSED | |
LSM_ERR_NO_SUPPORT_ONLINE_CHANGE |
^ Need license for feature |
LSM_ERR_NO_SUPPORT_OFFLINE_CHANGE |
^ Take offline before performing operation |
LSM_ERR_PLUGIN_AUTH_FAILED |
^ Needs to be online to perform operation |
LSM_ERR_PLUGIN_IPC_FAIL |
^ Authorization failed |
LSM_ERR_PLUGIN_SOCKET_PERMISSION |
^ Inter-process communication between client & out of process plug-in encountered connection errors. |
LSM_ERR_PLUGIN_NOT_EXIST |
^ Incorrect permission on UNIX domain socket used for IPC |
LSM_ERR_NOT_ENOUGH_SPACE |
^ Plug-in does not appear to exist |
LSM_ERR_TRANSPORT_COMMUNICATION |
^ Insufficient space |
LSM_ERR_TRANSPORT_SERIALIZATION |
^ Error comunicating with plug-in |
LSM_ERR_TRANSPORT_INVALID_ARG |
^ Transport serialization error |
LSM_ERR_LAST_INIT_IN_ACCESS_GROUP |
^ Parameter transported over IPC is invalid |
LSM_ERR_UNSUPPORTED_SEARCH_KEY | |
LSM_ERR_EMPTY_ACCESS_GROUP |
^ Unsupport search key |
LSM_ERR_POOL_NOT_READY | |
LSM_ERR_DISK_NOT_FREE |
Definition at line 33 of file libstoragemgmt_error.h.
void LSM_DLL_EXPORT* lsm_error_debug_data_get | ( | lsm_error_ptr | e, | |
uint32_t * | size | |||
) |
Retrieves the debug data from the error. Note: The returned value is only valid as long as the e is valid, in addition the function will return NULL if e is invalid. To remove the ambiguity call lsm_error_number_get and check return code.
e | The lsm_error_ptr | |
[out] | size | Number of bytes of data returned. |
Definition at line 433 of file lsm_datatypes.cpp.
char LSM_DLL_EXPORT* lsm_error_debug_get | ( | lsm_error_ptr | e | ) |
Retrieves the error message from the error. Note: The returned value is only valid as long as the e is valid, in addition the function will return NULL if e is invalid. To remove the ambiguity call lsm_error_number_get and check return code.
e | The lsm_error_ptr |
Definition at line 428 of file lsm_datatypes.cpp.
char LSM_DLL_EXPORT* lsm_error_exception_get | ( | lsm_error_ptr | e | ) |
Retrieves the exception message from the error. Note: The returned value is only valid as long as the e is valid, in addition the function will return NULL if e is invalid. To remove the ambiguity call lsm_error_number_get and check return code.
e | The lsm_error_ptr |
Definition at line 423 of file lsm_datatypes.cpp.
int LSM_DLL_EXPORT lsm_error_free | ( | lsm_error_ptr | err | ) |
Frees the error record!
err | The error to free! |
Definition at line 373 of file lsm_datatypes.cpp.
lsm_error_ptr LSM_DLL_EXPORT lsm_error_last_get | ( | lsm_connect * | c | ) |
Gets the last error structure Note:
c | Connection pointer. |
char LSM_DLL_EXPORT* lsm_error_message_get | ( | lsm_error_ptr | e | ) |
Retrieves the error message from the error. Note: The returned value is only valid as long as the e is valid, in addition the function will return NULL if e is invalid. To remove the ambiguity call lsm_error_number_get and check return code.
e | The lsm_error_ptr |
Definition at line 418 of file lsm_datatypes.cpp.
lsm_error_number LSM_DLL_EXPORT lsm_error_number_get | ( | lsm_error_ptr | e | ) |
Retrieves the error number from the error.
e | The lsm_error_ptr |
Definition at line 413 of file lsm_datatypes.cpp.