CashScript / cashscript

⚖️ Easily write and interact with Bitcoin Cash smart contracts
https://cashscript.org
MIT License
115 stars 80 forks source link

Try/catch and error throw/catch #15

Closed cgcardona closed 2 years ago

cgcardona commented 5 years ago

We're working on a debugger and meep integration but it could also potentially be nice to have a try/catch block and the ability to throw/catch errors w/ custom error messages.

rkalis commented 2 years ago

Script itself doesn't support the "catching" of errors or throwing of custom errors, so this is something that would likely be implemented within some sort of debugger environment / libauth evaluation, which have their own issues, so I'm closing this issue.