OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TDBException Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TDBException:
+ Collaboration diagram for heavydb.thrift.ttypes.TDBException:

Public Member Functions

def __init__
 
def __setattr__
 
def __delattr__
 
def __hash__
 
def read
 
def write
 
def validate
 
def __str__
 
def __repr__
 
def __eq__
 
def __ne__
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - error_msg

Definition at line 1702 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TDBException.__init__ (   self,
  error_msg = None 
)

Definition at line 1710 of file ttypes.py.

References heavydb.thrift.ttypes.TDBException.__setattr__().

1711  def __init__(self, error_msg=None,):
1712  super(TDBException, self).__setattr__('error_msg', error_msg)

+ Here is the call graph for this function:

Member Function Documentation

def heavydb.thrift.ttypes.TDBException.__delattr__ (   self,
  args 
)

Definition at line 1716 of file ttypes.py.

1717  def __delattr__(self, *args):
1718  raise TypeError("can't modify immutable instance")
def heavydb.thrift.ttypes.TDBException.__eq__ (   self,
  other 
)

Definition at line 1768 of file ttypes.py.

1769  def __eq__(self, other):
1770  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TDBException.__hash__ (   self)

Definition at line 1719 of file ttypes.py.

1720  def __hash__(self):
1721  return hash(self.__class__) ^ hash((self.error_msg, ))
def heavydb.thrift.ttypes.TDBException.__ne__ (   self,
  other 
)

Definition at line 1771 of file ttypes.py.

1772  def __ne__(self, other):
1773  return not (self == other)
1774 
def heavydb.thrift.ttypes.TDBException.__repr__ (   self)

Definition at line 1763 of file ttypes.py.

References join().

1764  def __repr__(self):
1765  L = ['%s=%r' % (key, value)
1766  for key, value in self.__dict__.items()]
1767  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def heavydb.thrift.ttypes.TDBException.__setattr__ (   self,
  args 
)

Definition at line 1713 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TDBException.__init__().

1714  def __setattr__(self, *args):
1715  raise TypeError("can't modify immutable instance")

+ Here is the caller graph for this function:

def heavydb.thrift.ttypes.TDBException.__str__ (   self)

Definition at line 1760 of file ttypes.py.

1761  def __str__(self):
1762  return repr(self)
def heavydb.thrift.ttypes.TDBException.read (   cls,
  iprot 
)

Definition at line 1723 of file ttypes.py.

1724  def read(cls, iprot):
1725  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and cls.thrift_spec is not None:
1726  return iprot._fast_decode(None, iprot, [cls, cls.thrift_spec])
1727  iprot.readStructBegin()
1728  error_msg = None
1729  while True:
1730  (fname, ftype, fid) = iprot.readFieldBegin()
1731  if ftype == TType.STOP:
1732  break
1733  if fid == 1:
1734  if ftype == TType.STRING:
1735  error_msg = iprot.readString().decode('utf-8', errors='replace') if sys.version_info[0] == 2 else iprot.readString()
1736  else:
1737  iprot.skip(ftype)
1738  else:
1739  iprot.skip(ftype)
1740  iprot.readFieldEnd()
1741  iprot.readStructEnd()
1742  return cls(
1743  error_msg=error_msg,
1744  )
def heavydb.thrift.ttypes.TDBException.validate (   self)

Definition at line 1757 of file ttypes.py.

1758  def validate(self):
1759  return
def heavydb.thrift.ttypes.TDBException.write (   self,
  oprot 
)

Definition at line 1745 of file ttypes.py.

1746  def write(self, oprot):
1747  if oprot._fast_encode is not None and self.thrift_spec is not None:
1748  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1749  return
1750  oprot.writeStructBegin('TDBException')
1751  if self.error_msg is not None:
1752  oprot.writeFieldBegin('error_msg', TType.STRING, 1)
1753  oprot.writeString(self.error_msg.encode('utf-8') if sys.version_info[0] == 2 else self.error_msg)
1754  oprot.writeFieldEnd()
1755  oprot.writeFieldStop()
1756  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TDBException.__dict__
private

Definition at line 1769 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().


The documentation for this class was generated from the following file: