Error Handling
Error Handling
try:
vessel_type = import_vessel_from_aqwa(model, aqwa_file, "Vessel_Type")
except OrcFxAPI.OrcaFlexError as e:
print(f"Import failed: {e}")
print("Check AQWA file path and format")
except FileNotFoundError:
print("AQWA file not found")
except ValueError as e:
print(f"Configuration error: {e}")