Bungee Logic : Statement : OnError

Page Status: Beta

Back to Bungee Logic Statements

Contents

[edit] Description

If an error occurs in the containing code block, control jumps to the OnError block.

Within this OnError block, the program can perform clean up and/or log the error. This is similar to the try/catch statement in other languages.

[edit] Syntax

OnError { }

[edit] Logic

 

OnError
{
   var Error error;


   // Your code goes here
}

 

[edit] Error Handling

-None-

[edit] Intrinsics

Variables

  • error — Contains the error value.

[edit] Properties

-None-

[edit] See Also


Log in if you would like to rate this page.
    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.