Slide 27
Slide 27 text
Proprietary + Confidential
Error handling,
conditionals, jumps
Payment Processor
Cloud Run
Authorize & charge CC
Notifier
Cloud Run
Notify user
Shipper
Cloud Functions
Prepare & ship items
- processPayment:
try:
call: http.post
args:
url: https://payment-processor.run.app/...
body:
input: ${paymentDetails}
result: processResult
except:
as: e
steps:
- known_errors:
switch:
- condition: ${not("HttpError" in e.tags)}
next: connectionError
- condition: ${e.code == 404}
return: "Sorry, URL wasn't found."
- unhandled_exception:
raise: ${e}
ERROR
CHECKING