LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes | List of all members
lsst.pex.exceptions.wrappers.Exception Class Reference
Inheritance diagram for lsst.pex.exceptions.wrappers.Exception:
lsst.pex.exceptions.wrappers.LogicError lsst.pex.exceptions.wrappers.NotFoundError lsst.pex.exceptions.wrappers.RuntimeError lsst.pex.exceptions.wrappers.DomainError lsst.pex.exceptions.wrappers.InvalidParameterError lsst.pex.exceptions.wrappers.LengthError lsst.pex.exceptions.wrappers.OutOfRangeError lsst.pex.exceptions.wrappers.IoError lsst.pex.exceptions.wrappers.MemoryError lsst.pex.exceptions.wrappers.OverflowError lsst.pex.exceptions.wrappers.RangeError lsst.pex.exceptions.wrappers.TimeoutError lsst.pex.exceptions.wrappers.TypeError lsst.pex.exceptions.wrappers.UnderflowError

Public Member Functions

def __init__
 
def __getattr__
 
def __repr__
 
def __str__
 

Public Attributes

 cpp
 

Static Public Attributes

 WrappedClass = exceptionsLib.Exception
 

Static Private Attributes

 __metaclass__ = ExceptionMeta
 
string __module__ = "lsst.pex.exceptions"
 

Detailed Description

The base class for Python-wrapped LSST C++ exceptions.

Definition at line 24 of file wrappers.py.

Constructor & Destructor Documentation

def lsst.pex.exceptions.wrappers.Exception.__init__ (   self,
  arg,
  args,
  kwds 
)

Definition at line 36 of file wrappers.py.

36 
37  def __init__(self, arg, *args, **kwds):
38  if isinstance(arg, exceptionsLib.Exception):
39  cpp = arg
40  message = cpp.what()
41  else:
42  message = arg
43  cpp = self.WrappedClass(message, *args, **kwds)
44  super(Exception, self).__init__(message)
45  self.cpp = cpp

Member Function Documentation

def lsst.pex.exceptions.wrappers.Exception.__getattr__ (   self,
  name 
)

Definition at line 46 of file wrappers.py.

46 
47  def __getattr__(self, name):
48  return getattr(self.cpp, name)
def lsst.pex.exceptions.wrappers.Exception.__repr__ (   self)

Definition at line 49 of file wrappers.py.

49 
50  def __repr__(self):
51  return "%s('%s')" % (type(self).__name__, self.cpp.what())
def lsst.pex.exceptions.wrappers.Exception.__str__ (   self)

Definition at line 52 of file wrappers.py.

52 
53  def __str__(self):
54  return self.cpp.asString()
55 
@register

Member Data Documentation

lsst.pex.exceptions.wrappers.Exception.__metaclass__ = ExceptionMeta
staticprivate

Definition at line 28 of file wrappers.py.

string lsst.pex.exceptions.wrappers.Exception.__module__ = "lsst.pex.exceptions"
staticprivate

Definition at line 32 of file wrappers.py.

lsst.pex.exceptions.wrappers.Exception.cpp

Definition at line 44 of file wrappers.py.

lsst.pex.exceptions.wrappers.Exception.WrappedClass = exceptionsLib.Exception
static

Definition at line 34 of file wrappers.py.


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