Package: matlab.exception
Capture error information for Python exception
Process information from a matlab.exception.PyException
object
to handle Python® errors thrown from Python methods called
from MATLAB®. This class is derived from MException
.
constructs
instance e
= matlab.exception.PyException(msgID
,errMsg
,excObj
)e
of matlab.exception.PyException
class.
Typically, you do not construct a matlab.exception.PyException
object
explicitly. MATLAB automatically constructs a PyException
object
whenever Python throws an exception. The PyException
object
wraps the original Python exception.