Open germa89 opened 2 years ago
Hi @germa89 ! Agree with you we need to improve the error handling. We have this initiative starting end of summer to improve the log/monitoring of MAPDL in PyAnsys. Warning and Error Feeback is part of the scope. Actually there's no formalized table of errors we can rely on for now.
Description of the feature
Current state
Currently most of the errors presented in the MAPDL logs are handled as
RuntimeErrors
. This might be convenient, because it simplifies the implementation, but it is not for error handling.As detailed in https://github.com/pyansys/pymapdl/discussions/1230, currently we cannot do:
Steps for implementing the feature
Ideally there should be an exception type for each possible Ansys MAPDL error.
This is a bit of work, but it is worthy.
Pinging @FredAns to know if there is a dict or database for MAPDL errors, and warnings.
List of errors
violate_shape_error_limits
warping_factor