Обработка ошибок
Конструкция try catch
TryStmt ="try" Block CatchStmt
CatchStmt = "catch" identifier Blockrun {
try {
myfunc()
error(101, "Custom error")
}
catch err {
if ErrID(err) != 101: error( 102,
"Error \{ErrText(err)} has occurred in myfunc()")
}
}Конструкция recover
RecoverStmt = "recover"Конструкция retry
Last updated
Was this helpful?