|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > Lang > abort()
abort() - The abort Function
Usage: abort(errorDescription)
Description: Aborts the interpretation of the WMLScript bytecode and returns the control back to the caller of the WMLScript interpreter with the return errorDescription. This function can be used to perforn an abnormal exit in cases where the execution of the WMLScript should be discontinued due to serious errors detected by the program. If the type of the errorDescription is invalid, string "invalid" is used as the errorDescription instead.
Example:Lang.abort("Error: " + errVal); // Error value is a string
Bookmark this page
|
|