LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
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: