<HEAD> <TITLE> throw - forces an error to occur in an object. </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> throw - forces an error to occur in an object. </H1> </center> <p> <b> void throw(mixed); </b> <p> Throw can be used to send an arbitrary value to an enclosing catch() statement. If you want to raise a general error message, see error(), as that will behave better if it is not caught. Control is transfered directly to the enclosing catch() statement, and the value of the catch() statement is the value thrown. <p> See also: <A HREF=catch.html> catch </A>, <A HREF=../system/error.html> error </A> <p> <HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim> Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/"> Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS> <p>