Learn BER - Error Handling

BER Programming Language - Error Handling

BER uses error keywords and concepts to help manage problems that happen during program execution. Here's how you can handle errors, detect them, and show messages.

fail "File not found error!"
fail "Invalid input, please try again."
if fail then
board:("An error happened!")
else
board:("Everything is fine.")
end
function errorCheck()
if fail then
board:("Oops, something failed!")
else
board:("No errors detected.")
end
errorCheck()