YENGtry

From OpenSimulator
Revision as of 23:42, 19 September 2020 by imported>Ubit (Created page with "try, catch and finally allow to handle some exceptions without getting the script killed. * on the try block we place the code we want to run protected. * on the catch block ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

try, catch and finally allow to handle some exceptions without getting the script killed.

  • on the try block we place the code we want to run protected.
  • on the catch block or blocks we place code to handle the exceptions
  • on the finally block we place code that should run always.

a try block must be follow by at least one catch or finally block there can be several catch blocks one per exception type, but only one finally