analysis_error.py#
OpenMDAO custom error: AnalysisError.
- exception openmdao.core.analysis_error.AnalysisError(error, location=None, msginfo=None)[source]
Bases:
Exception
Analysis Error.
This exception indicates that a possibly recoverable numerical error occurred in an analysis code or a subsolver.
- Parameters:
- errorstr
Error message.
- locationNone or inspect.currentframe()
Inspect.currentframe of error being raised.
- msginfostr
Name of component that raise the AnalysisError.
- __init__(error, location=None, msginfo=None)[source]
Initialize AnalysisError.
- add_note()
Exception.add_note(note) – add a note to the exception
- args
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.