Rethrowing Exceptions : Throw : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » Throw »

 

Rethrowing Exceptions


 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        try
        {
            try
            {
                throw new Error();
            catch (error:Error) {
                trace("inner handler");
                throw error;
            }
        catch (error:Error) {
            trace("outer handler");
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Statement
» Throw