OmniSciDB  340b00dbf6
 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 1550 of file ttypes.py.

Constructor & Destructor Documentation

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

Definition at line 1558 of file ttypes.py.

1559  def __init__(self, error_msg=None,):
1560  self.error_msg = error_msg

Member Function Documentation

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

Definition at line 1603 of file ttypes.py.

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

Definition at line 1606 of file ttypes.py.

1607  def __ne__(self, other):
1608  return not (self == other)
1609 
def omnisci.thrift.ttypes.TOmniSciException.__repr__ (   self)

Definition at line 1598 of file ttypes.py.

References join().

1599  def __repr__(self):
1600  L = ['%s=%r' % (key, value)
1601  for key, value in self.__dict__.items()]
1602  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 1595 of file ttypes.py.

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

Definition at line 1561 of file ttypes.py.

References omnisci.thrift.ttypes.TOmniSciException.error_msg.

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

Definition at line 1592 of file ttypes.py.

1593  def validate(self):
1594  return
def omnisci.thrift.ttypes.TOmniSciException.write (   self,
  oprot 
)

Definition at line 1580 of file ttypes.py.

References omnisci.thrift.ttypes.TOmniSciException.error_msg.

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

Member Data Documentation

omnisci.thrift.ttypes.TOmniSciException.__dict__
private

Definition at line 1604 of file ttypes.py.

omnisci.thrift.ttypes.TOmniSciException.error_msg

Definition at line 1559 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: