You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still trying to work out what error handling will look like, here is a rough idea:
start:
declare last-order-date is text
# one line
try to fetch last order date into last-order-date, on no-orders set last-order-date to "unknown", on missing-order display error-message, always display "Fetched order date"
# one line with better spacing
try to fetch last order date into last-order-date,
on no-orders set last-order-date to "unknown",
on missing-order display error-message,
always display "Fetched order date"
# multiline
try
fetch last order date into last-order-date
display "Fetched order date"
catch no-orders, set last-order-date to "unknown"
catch missing-order do
display error-message
end
fetch last order date into dest (dest is text):
raise error no-orders
raise error missing-order with the message "Where did it go?"
The text was updated successfully, but these errors were encountered:
Still trying to work out what error handling will look like, here is a rough idea:
The text was updated successfully, but these errors were encountered: