Base Exception for SequoiaDB
def pysequoiadb.error.SDBBaseError.code |
( |
|
self | ) |
|
The error code returned by the server, if any.
def pysequoiadb.error.SDBBaseError.detail |
( |
|
self | ) |
|
return the detail error message
def pysequoiadb.error.SDBBaseError.errcode |
( |
|
self | ) |
|
Errcode of current error.
def pysequoiadb.error.SDBBaseError.error_object |
( |
|
self | ) |
|
Return the error object of last operation which type is dict.
None if no error object. The error object contains the follow 3 fields:
* errno : The error number.
* description : The description of the errno.
* detail : The error detail.
When an error happen in the data nodes, the error object will also contains the follow field:
* ErrNodes: The error detail of the data nodes.
eg. This is a Redefine index error:
{
'errno': -247,
'ErrNodes': [{ 'GroupName': 'datagroup', 'Flag': -247, 'NodeName': 'localhost:11820',
'ErrInfo': { 'errno': -247, 'description': 'Redefine index', 'detail': '' }}],
'description': 'Redefine index',
'detail': ''
}
Visit this url:
"http://doc.sequoiadb.com/cn/sequoiadb-cat_id-1482317447-edition_id-304"
to get more details about the error object.
The documentation for this class was generated from the following file: