Next: exception-predicate, Previous: try-until, Up: Exception Handling [Contents][Index]
In previous sections we saw how exceptions are usually the side-product of performing certain operations. For example, a division by zero.
However, it is also useful to explicitly raise exceptions. The
raise statement can be used for that purpose. Its syntax is:
where exception is an integer. This integer can be any number,
but most often is one of the
E_* codes defined in Poke.