Example of raised error (pyCAPS.CAPSError) handling in pyCAPS.
3 from __future__
import print_function
9 print(
"Initiating capsProblem")
13 print(
"Loading file into our capsProblem")
14 myGeometry = myProblem.loadCAPS(
"./csmData/cfdMultiBody.csm")
18 myGeometry = myProblem.loadCAPS(
"./csmData/cfdMultiBody.csm")
21 print(
"We caught the error!")
23 print(
"Error code =", e.errorCode)
24 print(
"Error name =", e.errorName)
29 print (
"We did not catch the error!")