FreneticLLC / FreneticScript

The Frenetic Scripting Engine (dll)
MIT License
4 stars 1 forks source link

Try/Catch #8

Closed mcmonkey4eva closed 8 years ago

mcmonkey4eva commented 8 years ago
try
{
    // Error!
    echo;
}
catch
{
    echo "Error! <{var[error]}>"
}
mcmonkey4eva commented 8 years ago

This requires complex error handling at the queue level, an error should know exactly which command caused it (generally the currently executing command on a queue) and from there know exactly which line in which file it was at (the command should know this).