agentlang-ai / agentlang

Generative AI-powered Programming Language
Apache License 2.0
119 stars 4 forks source link

Throw pattern #1456

Closed vijayfractl closed 2 months ago

vijayfractl commented 3 months ago

Support rethrow of errors from patterns. E.g:

{:Twist/AllocateCapcity {}
 :throw
 [:not-found {:Twist/AllocationFailure {:Message "data not found"}}
  :error {:Twist/AllocationFailure {:Message (str "internal error: " :Error)}}]
 ;; ...
 }