Error Handling¶
The following custom errors are defined in MachUpX
- class airfoil_db.DatabaseBoundsError(airfoil, exception_indices, inputs_dict)¶
An exception thrown when the inputs to the airfoil database fall outside the database bounds.
- airfoil¶
The name of the airfoil for which this exception occurred.
- Type:
str
- inputs_dict¶
The arguments passed to the airfoil.
- Type:
dict
- exception_indices¶
The indices at which the arguments fell outside the database bounds.
- Type:
list
- message¶
A message about the error.
- Type:
str
Errors can be processed as warnings or entirely suppressed using the Scene.set_err_state() method.
Please note that within DatabaseBoundsError, angular values (“alpha”, “trailing_flap_deflection”) are reported in radians.