LSST Applications g04c3c9f7ca+2075667efa,g1e125bf412+5f448d5fcf,g2079a07aa2+3e9fd84d81,g2305ad1205+b635cf1488,g2bbee38e9b+6c6beb4891,g337abbeb29+6c6beb4891,g33d1c0ed96+6c6beb4891,g3a166c0a6a+6c6beb4891,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+42f171e1e6,g5c3423f6d4+d536b04327,g607f77f49a+d536b04327,g6f43f06aed+ca1339dc19,g858d7b2824+d536b04327,g8ee334c5b4+d7f9608c2f,g9963eaa53e+b3dc1655d3,g998f4353bf+d536b04327,g99cad8db69+8ef2408349,g9ddcbc5298+9a081db1e4,ga1e77700b3+2cbb763275,gadfd92a7e4+aec2f3b930,gae0086650b+585e252eca,gb0e22166c9+0e73c8378f,gb3b7280ab2+cb5fdb229e,gbb8dafda3b+a327199e22,gc120e1dc64+88074880ea,gc28159a63d+6c6beb4891,gcdd4ae20e8+bd241b2308,gcde1bda545+903e937d91,gcf0d15dbbd+bd241b2308,gdaeeff99f8+f9a426f77a,gddc38dedce+585e252eca,ge79ae78c31+6c6beb4891,gfbcc870c63+b310236976,w.2024.23
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.pex.exceptions.wrappers.Exception Class Reference
Inheritance diagram for lsst.pex.exceptions.wrappers.Exception:
lsst.pex.exceptions.wrappers.ExceptionMeta 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.TypeError lsst.pex.exceptions.wrappers.IoError lsst.pex.exceptions.wrappers.OverflowError lsst.pex.exceptions.wrappers.RangeError lsst.pex.exceptions.wrappers.UnderflowError

Public Member Functions

 __init__ (self, arg, *args, **kwds)
 
 __getattr__ (self, name)
 
 __repr__ (self)
 
 __str__ (self)
 

Public Attributes

 cpp
 

Static Public Attributes

 WrappedClass = exceptions.Exception
 

Detailed Description

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

Definition at line 54 of file wrappers.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 64 of file wrappers.py.

64 def __init__(self, arg, *args, **kwds):
65 if isinstance(arg, exceptions.Exception):
66 cpp = arg
67 message = cpp.what()
68 else:
69 message = arg
70 cpp = self.WrappedClass(message, *args, **kwds)
71 super(Exception, self).__init__(message)
72 self.cpp = cpp
73

Member Function Documentation

◆ __getattr__()

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

Reimplemented from lsst.pex.exceptions.wrappers.ExceptionMeta.

Definition at line 74 of file wrappers.py.

74 def __getattr__(self, name):
75 return getattr(self.cpp, name)
76

◆ __repr__()

lsst.pex.exceptions.wrappers.Exception.__repr__ ( self)

Definition at line 77 of file wrappers.py.

77 def __repr__(self):
78 return "%s('%s')" % (type(self).__name__, self.cpp.what())
79

◆ __str__()

lsst.pex.exceptions.wrappers.Exception.__str__ ( self)

Definition at line 80 of file wrappers.py.

80 def __str__(self):
81 return self.cpp.asString()
82
83
84@register

Member Data Documentation

◆ cpp

lsst.pex.exceptions.wrappers.Exception.cpp

Definition at line 72 of file wrappers.py.

◆ WrappedClass

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

Definition at line 62 of file wrappers.py.


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