The finally Block : Finally : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » Finally »

 

The finally Block


 
try {
catch (e:ErrorType1) {
catch (e:ErrorTypen) {
finally {
}

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        try {
          try {
            throw new Error("Test error");
          catch (e:Error) {
            trace(e.message);  // Displays: Test error
          }
        catch (e:Error) {
        }

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Statement
» Finally