OmniSciDB  8fa3bf436f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TOmniSciException Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TOmniSciException:
+ Collaboration diagram for omnisci.thrift.ttypes.TOmniSciException:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __str__
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 error_msg
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - error_msg

Definition at line 1553 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.thrift.ttypes.TOmniSciException.__init__ (   self,
  error_msg = None 
)

Definition at line 1561 of file ttypes.py.

1562  def __init__(self, error_msg=None,):
1563  self.error_msg = error_msg

Member Function Documentation

def omnisci.thrift.ttypes.TOmniSciException.__eq__ (   self,
  other 
)

Definition at line 1606 of file ttypes.py.

1607  def __eq__(self, other):
1608  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TOmniSciException.__ne__ (   self,
  other 
)

Definition at line 1609 of file ttypes.py.

1610  def __ne__(self, other):
1611  return not (self == other)
1612 
def omnisci.thrift.ttypes.TOmniSciException.__repr__ (   self)

Definition at line 1601 of file ttypes.py.

References join().

1602  def __repr__(self):
1603  L = ['%s=%r' % (key, value)
1604  for key, value in self.__dict__.items()]
1605  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 omnisci.thrift.ttypes.TOmniSciException.__str__ (   self)

Definition at line 1598 of file ttypes.py.

1599  def __str__(self):
1600  return repr(self)
def omnisci.thrift.ttypes.TOmniSciException.read (   self,
  iprot 
)

Definition at line 1564 of file ttypes.py.

References omnisci.thrift.ttypes.TOmniSciException.error_msg.

1565  def read(self, iprot):
1566  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
1567  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
1568  return
1569  iprot.readStructBegin()
1570  while True:
1571  (fname, ftype, fid) = iprot.readFieldBegin()
1572  if ftype == TType.STOP:
1573  break
1574  if fid == 1:
1575  if ftype == TType.STRING:
1576  self.error_msg = iprot.readString().decode('utf-8') if sys.version_info[0] == 2 else iprot.readString()
1577  else:
1578  iprot.skip(ftype)
1579  else:
1580  iprot.skip(ftype)
1581  iprot.readFieldEnd()
1582  iprot.readStructEnd()
def omnisci.thrift.ttypes.TOmniSciException.validate (   self)

Definition at line 1595 of file ttypes.py.

1596  def validate(self):
1597  return
def omnisci.thrift.ttypes.TOmniSciException.write (   self,
  oprot 
)

Definition at line 1583 of file ttypes.py.

References omnisci.thrift.ttypes.TOmniSciException.error_msg.

1584  def write(self, oprot):
1585  if oprot._fast_encode is not None and self.thrift_spec is not None:
1586  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
1587  return
1588  oprot.writeStructBegin('TOmniSciException')
1589  if self.error_msg is not None:
1590  oprot.writeFieldBegin('error_msg', TType.STRING, 1)
1591  oprot.writeString(self.error_msg.encode('utf-8') if sys.version_info[0] == 2 else self.error_msg)
1592  oprot.writeFieldEnd()
1593  oprot.writeFieldStop()
1594  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TOmniSciException.__dict__
private

Definition at line 1607 of file ttypes.py.

omnisci.thrift.ttypes.TOmniSciException.error_msg

Definition at line 1562 of file ttypes.py.

Referenced by omnisci.thrift.ttypes.TOmniSciException.read(), and omnisci.thrift.ttypes.TOmniSciException.write().


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