Next: , Previous: , Up: Exception Handling   [Contents][Index]


20.16.4 raise

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:

raise exception;

where exception is an integer. This integer can be any number, but most often is one of the E_* codes defined in Poke.