SequoiaDB
 All Classes Functions
Public Member Functions | List of all members
pysequoiadb.error.SDBBaseError Class Reference
Inheritance diagram for pysequoiadb.error.SDBBaseError:
pysequoiadb.error.SDBEndOfCursor pysequoiadb.error.SDBError pysequoiadb.error.SDBInvalidArgument pysequoiadb.error.SDBIOError pysequoiadb.error.SDBNetworkError pysequoiadb.error.SDBSystemError pysequoiadb.error.SDBTypeError pysequoiadb.error.SDBUnknownError

Public Member Functions

def __init__
 
def __repr__
 
def __str__
 
def code
 
def errcode
 
def detail
 
def error_object
 

Detailed Description

Base Exception for SequoiaDB

Member Function Documentation

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: