Previous Topic

Next Topic

Throw statement

The Throw statement is used for raising an exception that will terminate processing unless caught by the exception handler Try...Catch...Finally...End Try below. You can use it to re-throw caught exceptions, these re-throws retain the original message and source path.

Syntax

Throw expression

Example:

Throw "Invalid Customer"

Or:

Try
  'Normal Processing
Catch Exception
  Throw Exception
End Try

See Also

MaxBasic Statements

Book Contents

Book Index