LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
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: